From e6493a189767857787218105a2e8992ede411ee6 Mon Sep 17 00:00:00 2001 From: Matthias Linhuber Date: Fri, 6 Mar 2026 11:01:16 +0100 Subject: [PATCH] Add auto-assign PR author workflow Automatically assigns the PR author as assignee when a PR is opened, reopened, or marked ready for review. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/auto-assign.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..02f3c03 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,23 @@ +name: Auto Assign PR Author + +on: + pull_request: + types: [opened, reopened, ready_for_review] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Auto assign PR author + 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] + }); +