sequelize/Draft Unfinished PRs
Automatically converts pull requests to draft when they are not ready to be merged
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token used to interact with the GitHub API. Requires: pull-requests:write, checks:read, contents:read. | no | ${{ github.token }} |
| draft-on-merge-conflict | Convert PR to draft when it has merge conflicts. | no | true |
| draft-on-any-labels | Convert PR to draft when it has any of these labels. Accepts a newline-separated or comma-separated list of label names. Leave empty to disable this check. | no | "" |
| draft-on-changes-requested | Convert PR to draft when a reviewer has submitted a "Changes Requested" review and the PR author has not yet re-requested a review from that reviewer. | no | true |
| draft-on-failing-required-checks | Convert PR to draft when required CI checks are failing. The action will attempt to read required checks from branch protection rules. If it cannot (e.g. insufficient permissions), it falls back to flagging any failing check. | no | true |
| dry-run | When true, perform all checks but do not convert any PR to draft and do not post any comments. What would have happened is printed to the Actions log instead. | no | false |
| post-comment | Post a comment on the PR explaining why it was converted to draft. | no | true |
| comment-template | Custom comment template. Supports the following placeholders: {reasons} — a markdown list of reasons why the PR was drafted. Leave empty to use the default template. | no | "" |
Outputs
| name | description |
|---|---|
| drafted | JSON array of PR numbers that were converted to draft in this run. Empty array if no PRs were drafted. |