You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Check PR CI
v1.1.0
Check the PR CI status and perform some operation after success or failure.
Since CI execution takes time, this Action only support schedule
trigger.
name: Check PR CI
on:
schedule:
- cron: "*/10 * * * *"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter-label: 'check-ci'
filter-creator-authority: 'write'
filter-head-ref: 'master, feature'
filter-support-fork: false
success-review: true
success-review-body: 'LGTM'
success-merge: true
merge-method: 'merge'
merge-title: 'Auto merge (#${number})'
failure-review: 'REQUEST_CHANGES'
failure-review-body: 'PTAL'
failure-close: true
Name | Desc | Type | Required |
---|---|---|---|
token | GitHub token | string | β |
filter-label | Filter PR by label. | string | β |
filter-creator | Filter PR by creator name. | string | β |
filter-creator-authority | Filter PR by creator authority. | string | β |
filter-head-ref | Filter PR head ref branch. | string | β |
filter-support-fork | Filter PR come from. Default true . |
boolean | β |
success-review | Whether to approve when success. | boolean | β |
success-review-body | Review body. | string | β |
success-merge | Whether to merge when success. | boolean | β |
merge-method | Merge method to use. Possible values are merge , squash or rebase . Default is merge . |
string | β |
merge-title | Title for the automatic merge. | string | β |
merge-message | Extra detail to append to automatic merge. | string | β |
failure-review | Include REQUEST_CHANGES or COMMENT. | string | β |
failure-review-body | Review body. | string | β |
failure-close | Whether close PR. | boolean | β |
merge-title
:${number}
will be replaced with the current PR numberfailure-review
: When use this, thefailure-review-body
is necessary
You are very welcome to try it out and put forward your comments. You can use the following methods:
- Report bugs or consult with Issue
- Submit Pull Request to improve the code of
check-pr-ci
δΉζ¬’θΏε ε ₯ ιιδΊ€ζ΅ηΎ€