From 66908ee30af185fafab76d2654d2bd6c520ea419 Mon Sep 17 00:00:00 2001
From: DTTerastar
Date: Sun, 10 May 2026 18:26:22 -0400
Subject: [PATCH] ci: replace auto-assign workflow with native gh CLI version
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Drop the pozil/auto-assign-issue action in favor of a hand-rolled
gh-CLI step. Differences vs. the previous workflow:
- Trigger: pull_request_target (opened, reopened, ready_for_review)
instead of pull_request opened. The _target variant runs in the base
repo's context, which is what's needed for the assignment to work on
PRs from forks.
- Skip if assignees[0] is already set — don't clobber an existing
manual assignment.
- Drops auto-assignment of issues. If you want issue auto-assignment
back, add a separate workflow keyed off issues.opened.
Co-Authored-By: Claude Opus 4.7 (1M context)
Co-authored-by: Orca
---
.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