Skip to content

Commit 7203df5

Browse files
authored
ci: enable merge queue and release environment approval gate (#97)
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>
1 parent 570681c commit 7203df5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
merge_group: {}
89
workflow_dispatch: {}
910

1011
permissions:

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
if: startsWith(github.ref, 'refs/tags/')
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 30
26+
environment: release
2627
permissions:
2728
contents: write
2829
packages: write

0 commit comments

Comments
 (0)