We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6f028 commit f4f62b0Copy full SHA for f4f62b0
.github/workflows/commit-review-cleanup.yml
@@ -2,16 +2,19 @@ name: Commit Review Cleanup
2
3
on:
4
pull_request_review:
5
- types: [ submitted ]
+ types: [submitted]
6
# branches:
7
# - "commit-review-**"
8
9
+env:
10
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11
+
12
jobs:
13
cleanup:
14
runs-on: ubuntu-latest
15
steps:
16
- run: |
- PR_URL="/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}"
17
+ PR_URL="/repos/${{ github.repository }}/pulls/${{ github.event.number }}"
18
REMAINING=$(gh api $PR_URL/requested_reviewers | jq 'length')
19
20
if $REMAINING -eq 0; then
review.json
@@ -0,0 +1,10 @@
1
+{
+ "action": "submitted",
+ "number": 2,
+ "head": {
+ "ref": "test-1"
+ },
+ "base": {
+ "ref": "test-2"
+ }
+}
0 commit comments