File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55name : Move Dependabot PRs to Review
66on :
77 pull_request :
8- types : [reopened] # For testing the workflow
8+ types : [reopened] # For testing the workflow
99
10- permissions :
11- contents : read
12- pull-requests : read
13- repository-projects : write
1410
1511jobs :
1612 move-dependabot-pr-to-review :
2016 runs-on : ubuntu-22.04
2117 steps :
2218 - uses : actions/checkout@v4
23-
19+
20+ - name : Add dependabot PR to project
21+ run : |
22+ # Add item to project
23+ gh pr edit $PR_NUMBER --add-project "secureCodeBox v4"
24+ env :
25+ GH_TOKEN : ${{ secrets.SCB_BOT_USER_TOKEN }}
26+
2427 - name : Add dependabot PR to column To Review
2528 run : |
2629 echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
3639 # ID for status "To Review"
3740 ToReviewID="00b0c876"
3841
39- # Add item to project
40- gh pr edit $PR_NUMBER --add-project "secureCodeBox v4"
4142 # Move PR to "To Review" status
4243 gh project item-edit --id $PR_ID --field-id $StatusFieldID --project-id $seureCodeBoxV4ProjectID --single-select-option-id $ToReviewID
4344
You can’t perform that action at this time.
0 commit comments