Repository navigation
feat(mergify): an ARCHITECTURE.md change stands alone and merges on the owner's approval - #22
Merged
Conversation
…he owner's approval
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Owner order: a PR that changes an
ARCHITECTURE.mdchanges only that file, and merges only with the owner's approval, org-wide.shared.touches_architecture:files ~= (^|/)ARCHITECTURE\.md$#files = 1approved-reviews-by = ryanleecodegh search code merge_protections --owner systemfsoftware --filename .mergify.ymlfinds only this repo, so every consumer inherits both.Companion PRs: workstation #3420 (the guard allows the owner's name only in an ARCHITECTURE.md rule) and #3424 (pre-push refuses a branch bundling ARCHITECTURE.md with other files).
Verification
python3 -c "import yaml; yaml.safe_load(open('.mergify.yml'))"exit 0Break glass
Case: the owner's explicit order ("YOU ARE ADMIN"). Committed through the contents API because the deployed guard still predates #3420.
Rollback: revert this PR.