From 241fb4877b6c934f2eccb662bf818a95d92611a7 Mon Sep 17 00:00:00 2001 From: Alan Chester Date: Wed, 22 Apr 2026 18:44:57 -0400 Subject: [PATCH] chore: auto-assign PR creator via GitHub Action Ensures every PR is automatically assigned to whoever opened it, so it shows up in Graphite and GitHub project boards. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/auto-assign.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/auto-assign.yml diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..66b7b8f --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,21 @@ +name: Auto-assign PR creator +on: + pull_request: + types: [opened] + +jobs: + assign: + runs-on: ubuntu-latest + permissions: + pull-requests: write + issues: write + steps: + - 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.payload.pull_request.user.login] + });