Skip to content

Commit 8019d0f

Browse files
committed
refactor: simplify PR assignment check workflow prompt
Make the workflow logic clearer by listing the two failure conditions upfront: 1. PR doesn't reference any issue 2. PR references an issue where author is not assigned This makes it easier to understand when PRs will be closed.
1 parent 09e0a4b commit 8019d0f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/pr-assignment-check.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,14 @@ jobs:
3030
prompt: |
3131
EXEMPT USERS: @maxprilutskiy, @vrcprl, @davidturnbull, @monicabe, @sumitsaurabh927, @AleksandrSl (skip all checks if PR author is one of these)
3232
33-
Check if this PR references any issues (via "Closes #123", "Fixes #456", etc.).
33+
Close this PR if:
34+
1. It doesn't reference any issue (no "Closes #123", "Fixes #456", etc.)
35+
2. OR it references an issue where the PR author is NOT assigned
3436
35-
For each referenced issue:
36-
1. Check if the issue has assignees
37-
2. If yes, check if the PR author is one of the assignees
38-
3. If the PR author is NOT an assignee, close this PR with a brief, friendly comment (2-3 sentences, no emojis) explaining:
39-
- The issue was already assigned to someone else
40-
- They should wait to be assigned before submitting PRs
41-
- Encourage them to find other unassigned issues
37+
When closing, leave a brief, friendly comment (2-3 sentences, no emojis) explaining:
38+
- They need to reference an assigned issue or get assigned first
39+
- They should find unassigned issues to work on
4240
43-
If no issues referenced or PR author is properly assigned, do nothing.
41+
Otherwise, do nothing.
4442
claude_args: |
4543
--allowedTools "Bash,Read,Grep,Glob"

0 commit comments

Comments
 (0)