Skip to content

Commit

Permalink
configure mergify to merge dependent libs automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu-sato committed Apr 28, 2024
1 parent b1b9e0d commit d57291c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .mergify
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
shared:
required_actions_were_succeeded_or_skipped: &required_actions_were_succeeded_or_skipped
- or:
- check-success = test
- check-skipped = test
- or:
- check-skipped = test (mariadb)
- check-success = test (mariadb)
- or:
- check-skipped = test (mongodb)
- check-success = test (mongodb)
- or:
- check-skipped = test (postgresql)
- check-success = test (postgresql)

pull_request_rules:
- name: All required actions were succeeded or skipped
conditions:
- and: *required_actions_were_succeeded_or_skipped
actions:
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"
actions:
review:
type: APPROVE
message: Automatically approving github-actions[bot]
merge:
method: merge
- name: Automatic merge for Dependabot pull requests
conditions:
- author = dependabot[bot]
- and: *required_actions_were_succeeded_or_skipped
actions:
merge:
method: merge

0 comments on commit d57291c

Please sign in to comment.