-
Notifications
You must be signed in to change notification settings - Fork 157
ci(mergify): upgrade configuration to current format #4796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,25 @@ | ||
| pull_request_rules: | ||
| merge_protections: | ||
| # Migrated from post_check rule 'Require approval from frontend or Armada maintainers for Lookout UI changes'. Dropped options with no equivalent: title | ||
| - name: Require approval from frontend or Armada maintainers for Lookout UI changes | ||
| conditions: | ||
| if: | ||
| - "#approved-reviews-by>=1" | ||
|
Comment on lines
+4
to
5
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Both protection rules use This behaviour is preserved from the original - name: Require approval from frontend or Armada maintainers for Lookout UI changes
# no `if:` → always enforced
success_conditions:
...Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| actions: | ||
| post_check: | ||
| success_conditions: | ||
| - or: | ||
| - "-files~=^internal/lookoutui/" | ||
| - "#approved-reviews-by>=2" | ||
| - and: | ||
| - "#approved-reviews-by>=1" | ||
| - "author~=^(d80tb7|dave[-]gantenbein|dejanzele|eleanorpratt|geaere|JamesMurkin|mauriceyap|masipauskas|MustafaI|zuqq|richscott|robertdavidsmith|samclark|suprjinx|EnricoMi|nikola-jokic|dslear|d2burkhalter|ianhockett|Sigele|williamvega|tgucks|YHines004|j8169)$" | ||
| title: Two approvals required, or one if author is a frontend or Armada maintainer. | ||
|
|
||
| success_conditions: | ||
| - or: | ||
| - "-files~=^internal/lookoutui/" | ||
| - "#approved-reviews-by>=2" | ||
| - and: | ||
| - "#approved-reviews-by>=1" | ||
| - "author~=^(d80tb7|dave[-]gantenbein|dejanzele|eleanorpratt|geaere|JamesMurkin|mauriceyap|masipauskas|MustafaI|zuqq|richscott|robertdavidsmith|samclark|suprjinx|EnricoMi|nikola-jokic|dslear|d2burkhalter|ianhockett|Sigele|williamvega|tgucks|YHines004|j8169)$" | ||
| # Migrated from post_check rule 'Require approval from Armada maintainers'. Dropped options with no equivalent: title | ||
| - name: Require approval from Armada maintainers | ||
| conditions: | ||
| if: | ||
| - "#approved-reviews-by>=1" | ||
| actions: | ||
| post_check: | ||
| success_conditions: | ||
| - or: | ||
| - and: | ||
| - "files~=^internal/lookoutui/" | ||
| - "-files~=^(?!internal/lookoutui/).*$" | ||
| - "#approved-reviews-by>=2" | ||
| - and: | ||
| - "#approved-reviews-by>=1" | ||
| - "author~=^(d80tb7|dave[-]gantenbein|dejanzele|eleanorpratt|geaere|JamesMurkin|mauriceyap|masipauskas|MustafaI|zuqq|richscott|robertdavidsmith|samclark|suprjinx|EnricoMi|nikola-jokic|j8169)$" | ||
| title: Two approvals required, or one if author is a maintainer. | ||
| success_conditions: | ||
| - or: | ||
| - and: | ||
| - "files~=^internal/lookoutui/" | ||
| - "-files~=^(?!internal/lookoutui/).*$" | ||
| - "#approved-reviews-by>=2" | ||
| - and: | ||
| - "#approved-reviews-by>=1" | ||
| - "author~=^(d80tb7|dave[-]gantenbein|dejanzele|eleanorpratt|geaere|JamesMurkin|mauriceyap|masipauskas|MustafaI|zuqq|richscott|robertdavidsmith|samclark|suprjinx|EnricoMi|nikola-jokic|j8169)$" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge_protectionsproduct must be enabled before mergingThe PR description itself warns: "The following required products are not enabled for this repository:
merge_protections. If you merge this PR without enabling them first, some of your rules will stop working."Merging this before enabling
merge_protectionsin the Mergify dashboard will leave the repository with no active approval enforcement — both the Lookout UI and Armada maintainer approval protections will silently stop working. The oldpull_request_rules+post_checkrules are being removed, and the newmerge_protectionsblock is inert until the feature is activated.Recommended order of operations:
merge_protectionsproduct in the Mergify dashboard for this repository.