ci: enable merge queue and release environment approval gate#97
Merged
Conversation
Add merge_group trigger to ci.yaml so CI runs when PRs enter the merge queue. The merge queue is configured in the new main-branch-protection ruleset (replaces legacy branch protection rules) with squash merging, ALLGREEN grouping, and 1-min wait before merging singles. Add environment: release to the release workflow. The release environment requires approval from @SebTardif before the release job can proceed, preventing accidental tag pushes from triggering unreviewed releases. Deployment is restricted to v* tags. Ruleset and environment were created via API in this session: - Ruleset ID 16941636 (main-branch-protection) - Environment: release (required reviewer: SebTardif, tag policy: v*) Closes #75 Closes #61 Closes #67 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
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.
Changes
Migrate to repository rulesets (#75)
Replaced legacy branch protection rules on
mainwith a repositoryruleset (
main-branch-protection, ID 16941636):Legacy branch protection rules have been deleted.
Enable merge queue (#61)
Merge queue is configured in the ruleset with:
Added
merge_group: {}trigger toci.yamlso CI runs on merge queueevents.
Release environment with approval gate (#67)
Created a
releaseenvironment with:v*tags onlyThe release workflow now declares
environment: release, so pushing av*tag will pause the release job until approved in the GitHub UI.Closes #75
Closes #61
Closes #67