Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yanamura/draft-to-ready-schedule-action


https://github.com/yanamura/draft-to-ready-schedule-action

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

# Draft to Ready schedule action

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

## Usage

```yaml
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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date) will work.

## How set GitHub token

Creating and storing encrypted secrets