Skip to content

Add a workflow to automatically convert pull requests to draft #2

Add a workflow to automatically convert pull requests to draft

Add a workflow to automatically convert pull requests to draft #2

Workflow file for this run

name: Convert PRs to Draft on Opening
on:
pull_request:
types: [synchronize]
jobs:
convert_to_draft:
runs-on: ubuntu-latest
steps:
- run: gh pr ready --undo ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}