yanamura / draft-to-ready-schedule-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Draft to Ready schedule action

This action make Pull Request draft to Ready for Review on a scheduled day.

Usage

on:
  schedule:
    # schedule setting is required.
    - cron:  '0 * * * *'
jobs:
  to-ready:
    - uses: yanamura/draft-pullrequest-to-ready@v1
      with: 
        ### GitHub token which have a permission to write repository (Can't use GITHUB_TOKEN).(required)
        github_token: ${{ secrets.BOT_TOKEN }}

In your pull requests, add a line to the end of the pull request description like this

/schedule 2020-11-01

Or if you need a more precise, timezone-safe setting, you can use an ISO 8601 date string

/schedule 2020-11-01T00:00:00.000+0900

Any string that works with the new Date() constructor will work.

How set GitHub token

Creating and storing encrypted secrets

About

License:MIT License


Languages

Language:TypeScript 100.0%