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