From 1706bd7c0eb8041cffcfbdda2c3bf8a44d651ee7 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sun, 12 Apr 2026 16:29:33 +0000 Subject: [PATCH] feat(workflow): add auto-assign GitHub Action for issue assignment Implement an auto-assign workflow to automatically assign newly opened issues to the repository owner. Impact: Streamlines issue management by ensuring the owner is automatically assigned to new issues. --- .github/workflows/auto-assign.yml | 25 +++++++++++++++++++++++++ CODEOWNERS | 11 +++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/auto-assign.yml create mode 100644 CODEOWNERS diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..3513aca --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,25 @@ +--- +name: Auto-assign + +on: + issues: + types: + - opened + +jobs: + auto-assign: + name: Assign to owner + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Assign issue to owner + uses: actions/github-script@v7 + with: + script: | + await github.rest.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + assignees: [context.repo.owner], + }); diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..a5e64d4 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,11 @@ +# CODEOWNERS +# +# This file defines code owners for this repository. +# Code owners are automatically requested for review when a pull request +# modifies files they own. +# +# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners +# +# NOTE: This file is updated automatically by initialize.sh when using the blueprint. + +* @jpawlowski