Skip to content

Commit

Permalink
added pr stack labels from suggest way (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
inkbeard authored Nov 26, 2024
1 parent f5537ac commit a29b67e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,26 @@ pull_request_rules:
toggle:
- "failure: conflict"
# PR label rules
- name: Add PR stack label for stacked PRs
- name: Label Mergify Stacks PRs
description: Pull requests that are part of a Mergify stack should be labeled as such
conditions:
- -closed
- base!=main
# Only trigger if the PR is part of a stack
- "commits[0].commit_message ~= (?m)Change-Id:"
actions:
label:
add:
toggle:
- PR stack
- name: Label first PR of Mergify Stacks PRs
description: The first PR of a Mergify stack should be labeled as such
conditions:
# Only trigger if the PR is part of a stack
- "commits[0].commit_message ~= (?m)Change-Id:"
# Ignore PR targeting their children
- -base ~= ^mergify_cli/
actions:
label:
toggle:
- top of the stack
- name: toggle generator label
conditions:
- -closed
Expand Down

0 comments on commit a29b67e

Please sign in to comment.