Convert PR to Draft PR on Changes Requested #49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Convert PR to Draft PR on Changes Requested | |
on: | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
convert-to-draft: | |
if: github.event.review.state == 'changes_requested' | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: read | |
steps: | |
- name: Convert PR to Draft | |
uses: JackEAllen/DraftOnChangeRequested@v1.0.0 | |
with: | |
github-token: ${{ secrets.ACTION_CONVERT_TO_DRAFT }} | |