Skip to content

structurecraft/convert-to-draft

 
 

Repository files navigation

Convert PR to Draft

Convert a pull request to draft

Input Options

repo-token

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.

pr-key

Required The pull request to convert to draft

Example

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

About

Convert a PR to draft

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 87.2%
  • JavaScript 12.8%