Convert a pull request to draft
Required Follow https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql to generate access token. At a minimum it should have pullrequest read/write access.
Required The pull request to convert to draft
name: convert-to-draft
on:
schedule:
- cron: '0 0 * * *'
jobs:
convert-to-draft:
runs-on: ubuntu-latest
steps:
- uses: raviraipuria/[email protected]
with:
repo-token: ${{ secrets.TOKEN }}
pr-key: 645