From ea36267d1ca5e18a781329c7cbe1ddf84e069a55 Mon Sep 17 00:00:00 2001
From: Darrell
Date: Sun, 1 Nov 2026 10:10:14 -0500
Subject: [PATCH] Auto-assign pull requests to DTTerastar
Same workflow as DTTerastar/homelab: on open, reopen or ready-for-review,
assign the PR to DTTerastar and request his review when he is not the author.
Co-Authored-By: Claude Fable 5.1
Claude-Session: https://claude.ai/code/session_01CP5PypGetJ7Mc13eYYF2yf
---
.github/workflows/auto-assign.yml | 24 ++++++++++++++++++++++++
1 file changed, 24 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..adfe9cc
--- /dev/null
+++ b/.github/workflows/auto-assign.yml
@@ -0,0 +1,24 @@
+name: Auto Assign Reviewer
+
+on:
+ pull_request_target:
+ types: [opened, reopened, ready_for_review]
+
+permissions:
+ pull-requests: write
+
+jobs:
+ assign:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Assign DTTerastar
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_REPO: ${{ github.repository }}
+ PR: ${{ github.event.pull_request.number }}
+ AUTHOR: ${{ github.event.pull_request.user.login }}
+ run: |
+ gh pr edit "$PR" --add-assignee DTTerastar
+ if [ "$AUTHOR" != "DTTerastar" ]; then
+ gh pr edit "$PR" --add-reviewer DTTerastar
+ fi