Skip to content

πŸš— Check the PR CI status and perform some operation after success or failure.

License

Notifications You must be signed in to change notification settings

actions-cool/check-pr-ci

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Check PR CI

Check the PR CI status and perform some operation after success or failure.

Since CI execution takes time, this Action only support schedule trigger.

🍭 How to use?

name: Check PR CI

on:
  schedule:
    - cron: "*/10 * * * *"

jobs:
  check-pr-ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions-cool/check-pr-ci@v1
        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 βœ–
skip-run-names Skip some run names. string βœ–
success-review Whether to approve when success. boolean βœ–
success-review-body Review body. string βœ–
success-merge Whether to merge when success. boolean βœ–
conflict-review-body Comment when has conflict. string βœ–
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 number
  • conflict-review-body: Default is πŸ˜… This branch has conflicts that must be resolved!
  • failure-review: When use this, the failure-review-body is necessary
  • skip-run-names: GitHub Doc check_runs name. When you merge default branch into another, you should add check-pr-ci (The jobs name)

⚑ Feedback

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

也欒迎加ε…₯ 钉钉亀桁羀

Changelog

CHANGELOG

LICENSE

MIT