From 6606323ba28855233a827a5148c3e0c82b048a11 Mon Sep 17 00:00:00 2001 From: DTTerastar Date: Sat, 26 Sep 2026 21:33:12 -0400 Subject: [PATCH] Fix auto-assign workflow failing on pull requests pozil/auto-assign-issue@v1 only handles issue events and throws on pull_request. Use the gh-based workflow the CLI repos already run. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Kaq7vVcd9yGgFvWPiq1icY --- .github/workflows/auto-assign.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index c9351cf..d9d5610 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -1,19 +1,19 @@ -name: Auto Assign +name: Auto-assign PR + on: - issues: - types: [opened] - pull_request: - types: [opened] + pull_request_target: + types: [opened, reopened, ready_for_review] + +permissions: + pull-requests: write + jobs: - run: + assign: + if: github.event.pull_request.assignees[0] == null runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write steps: - - name: 'Auto-assign issue' - uses: pozil/auto-assign-issue@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: DTTerastar - numOfAssignee: 1 + - name: Assign PR to DTTerastar + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }} + run: gh pr edit "$PR_URL" --add-assignee DTTerastar