Skip to content

Commit

Permalink
chore: re-enable mergify for dependabot & trivial (#5264)
Browse files Browse the repository at this point in the history
## Description
mergify automatic approval for dependabot PR's was disabled on
#5208 following
malfunctioning.
This PR re-enables mergify's automatic merge of Dependabot PR's and the
`trivial` label with the syntax [suggested on mergify's
doc](https://docs.mergify.com/integrations/dependabot/#2-pr-approval)
  • Loading branch information
jxs authored and guillaumemichel committed Mar 28, 2024
1 parent 21ffd2f commit d6ed135
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,24 @@ pull_request_rules:
message: Approvals have been dismissed because the PR was updated after the `send-it` label was applied.
changes_requested: false

# - name: Approve trivial maintainer PRs
# conditions:
# - base=master
# - label=trivial
# - author=@libp2p/rust-libp2p-maintainers
# actions:
# review:
- name: Approve trivial maintainer PRs
conditions:
- base=master
- label=trivial
- author=@libp2p/rust-libp2p-maintainers
actions:
review:
type: APPROVE

# - name: Approve dependabot PRs of semver-compatible updates
# conditions:
# - author=dependabot[bot]
# - or:
# - title~=bump [^\s]+ from ([1-9]+)\..+ to \1\. # For major >= 1 versions, only approve updates with the same major version.
# - title~=bump [^\s]+ from 0\.([\d]+)\..+ to 0\.\1\. # For major == 0 versions, only approve updates with the same minor version.
# actions:
# review:
- name: Approve dependabot PRs of semver-compatible updates
conditions:
- author=dependabot[bot]
- or:
- title~=bump [^\s]+ from ([1-9]+)\..+ to \1\. # For major >= 1 versions, only approve updates with the same major version.
- title~=bump [^\s]+ from 0\.([\d]+)\..+ to 0\.\1\. # For major == 0 versions, only approve updates with the same minor version.
actions:
review:
type: APPROVE

queue_rules:
- name: default
Expand Down

0 comments on commit d6ed135

Please sign in to comment.