Skip to content

Commit

Permalink
Merge pull request #19 from weseek/support/set-auto-approval-in-mergi…
Browse files Browse the repository at this point in the history
…fy-to-true-when-pr-is-for-prepare-release

support: Add config to approve PR whose owner is github-actions[bot] and update CI check
  • Loading branch information
ryu-sato authored Feb 17, 2024
2 parents 1725cd2 + 4a0131f commit e820e5a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@ shared:
- check-success = labeling

pull_request_rules:
- name: Toggle labels based on CI state
- name: All required actions were succeeded or skipped
conditions:
- and: *required_actions_were_succeeded_or_skipped
actions:
label:
toggle:
- 'flag/ci-fail'
post_check:
title: required-actions-were-succeeded-or-skipped
success_conditions:
- and: *required_actions_were_succeeded_or_skipped
- name: Automatic merge for Preparing next version
conditions:
- author = github-actions[bot]
- label = "type/prepare-next-version"
- label != flag/ci-fail
actions:
review:
type: APPROVE
message: Automatically approving github-actions[bot]
merge:
method: merge

0 comments on commit e820e5a

Please sign in to comment.