File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Auto Assign Reviewer
2
2
3
3
on :
4
4
pull_request_target :
5
- types : [opened, ready_for_review, synchronize ]
5
+ types : [opened, ready_for_review]
6
6
workflow_dispatch : {}
7
7
8
8
permissions :
@@ -29,16 +29,15 @@ jobs:
29
29
30
30
- name : Authenticate with GitHub
31
31
run : |
32
- if [ -z "${{ secrets.GH_PAT }}" ]; then
33
- echo "Error: GH_PAT secret is not set"
32
+ if [ -z "${{ secrets.REVIEWER_TOKEN }}" ]; then
33
+ echo "Error: REVIEWER_TOKEN secret is not set"
34
34
exit 1
35
35
fi
36
- # Use PAT directly without gh auth login
37
- echo "Using PAT for authentication"
36
+ echo "Using organization token for authentication"
38
37
39
38
- name : Assign reviewer
40
39
env :
41
40
PR_NUMBER : ${{ github.event.pull_request.number }}
42
- GH_TOKEN : ${{ secrets.GH_PAT }}
41
+ GH_TOKEN : ${{ secrets.REVIEWER_TOKEN }}
43
42
run : |
44
43
python .github/scripts/assign_reviewer.py
You can’t perform that action at this time.
0 commit comments