Skip to content

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

Add a workflow to automatically convert pull requests to draft

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

Workflow file for this run

name: Convert PRs to Draft on Opening
on:
pull_request:
types: [opened]
jobs:
convert_to_draft:
runs-on: ubuntu-latest
steps:
- name: Install GitHub CLI
run: sudo apt-get install gh -y
- name: Authenticate GitHub CLI
run: gh auth login --with-token ${{ secrets.GITHUB_TOKEN }}
- name: Convert PR to Draft
run: gh pr ready --undo ${{ github.event.pull_request.number }}