-
Notifications
You must be signed in to change notification settings - Fork 836
44 lines (39 loc) · 1.43 KB
/
pr-assignment-check.yml
File metadata and controls
44 lines (39 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: PR Assignment Check
on:
pull_request_target:
types: [opened, reopened, edited]
workflow_dispatch:
inputs:
pr_number:
description: "PR number to check"
required: true
type: number
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.CLAUDE_CODE_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
allowed_bots: "coderabbitai[bot]"
show_full_output: true
prompt: |
EXEMPT USERS: @maxprilutskiy, @vrcprl, @davidturnbull, @monicabe, @sumitsaurabh927, @AleksandrSl, @cherkanovart, @AndreyHirsa, @ohmoses (skip all checks if PR author is one of these)
Close this PR if:
1. It doesn't reference any issue (no "Closes #123", "Fixes #456", etc.)
2. OR it references an issue where the PR author is NOT assigned
When closing, leave a brief, friendly comment (2-3 sentences, no emojis) explaining:
- They need to reference an assigned issue or get assigned first
- They should find unassigned issues to work on
Otherwise, do nothing.
claude_args: |
--allowedTools "Bash,Read,Grep,Glob"