CI: convert PRs to draft after review

This commit is contained in:
Adeeb Shihadeh
2025-07-04 10:14:36 -07:00
parent 0fac3c9d1d
commit 9fdbf2e283

15
.github/workflows/pr_draft.yaml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Re-draft on review
on:
pull_request_review:
types: [submitted]
jobs:
redraft:
if: github.event.review.state == 'changes_requested'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- run: gh pr ready --undo "${{ github.event.pull_request.number }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}