1 parent a7ba752 commit 4c8a4e7Copy full SHA for 4c8a4e7
1 file changed
.github/workflows/test-review-handler.yml
@@ -118,3 +118,14 @@ jobs:
118
`**Head Repo:** ${context.payload.workflow_run.head_repository.full_name}`,
119
].join("\n")
120
});
121
+
122
+ - name: Handle Review Changes Requested
123
+ if: steps.check-artifact.outputs.exists == 'true' && steps.review.outputs.review_state == 'changes_requested'
124
+ env:
125
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126
+ PR_NUMBER: ${{ steps.review.outputs.pr_number }}
127
+ REPO: ${{ github.repository }}
128
+ run: |
129
+ gh pr edit $PR_NUMBER --remove-label "needs review" --repo $REPO 2>/dev/null || true
130
+ gh pr edit $PR_NUMBER --remove-label "needs testing" --repo $REPO 2>/dev/null || true
131
+ gh pr edit $PR_NUMBER --add-label "changes required" --repo $REPO
0 commit comments