Skip to content

fix(ci): refuse other commits on release branch (#7220) - #7610

Merged
dan-petty merged 1 commit into
mainfrom
fix/7220-refuse-release-foreign-files
Nov 28, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/7220-refuse-release-foreign-files

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Added release_file_refusals(session, repository, number) to src/devops_cli/release/merge_candidate.py and the CLI guard module src/devops_cli/release/release_files.py (check_release_files) with messages in ReleaseMessages and unit tests in tests/release/test_release_files.py.

Updated main-tests (Tests on Main) in .github/workflows/ci.yml to check out base.sha and run python -m devops_cli.release.release_files before waiting for the push run of main, refusing any release-branch commit modifying files outside RELEASE_FILES, and documented the guard in RELEASE_CYCLE.md.

Closes #7220
Change: openspec/changes/archive/2026-11-28-7220-refuse-other-commits-on-the-release/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 17:09
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 9882f8c01e57c26100ce1c997ae97bcd5d8ac3b5

Check Conclusion Link
devops-cli success run
zizmor success run
trivy-config success run
Tests & Coverage success run
Trivy neutral run
Changed-Test Independence success run
CodeQL success run
Plan Check skipped run
Test Job Duration skipped run
Tests on Main skipped run
Dependency Freshness skipped run
Docs Site Build success run
Tests & Coverage (shard 5 of 6) success run
Changed-Test Independence (run 2 of 3) success run
Design Tokens success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 1 of 6) success run
Tests & Coverage (shard 4 of 6) success run
Tests & Coverage (shard 3 of 6) success run
Tests & Coverage (shard 6 of 6) success run
Fail-to-Pass Check success run
Service Image success run
Tests & Coverage (shard 2 of 6) success run
Runner Image success run
Changed-Test Independence (run 1 of 3) success run
Static Analysis success run
Semantic PR title success run
Analyze (actions) success run
Analyze (python) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/46168303556/job/141050721394

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Test Job Duration
Skipped check: Tests on Main
Skipped check: Dependency Freshness

@dan-petty
dan-petty merged commit 5866f42 into main Nov 28, 2026
29 checks passed
@dan-petty
dan-petty deleted the fix/7220-refuse-release-foreign-files branch November 28, 2026 17:18
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.237.0](v0.236.0...v0.237.0)
(2026-11-28)


### Features

* **design:** render report charts from tokens
([#4758](#4758))
([#7608](#7608))
([fdf16f7](fdf16f7))
* **monitoring:** export outdated dependencies from Renovate
([#4911](#4911))
([#7603](#7603))
([130a7aa](130a7aa))
* **monitoring:** show soft-cap and fix-check results
([#4868](#4868))
([#7607](#7607))
([9c9ea7e](9c9ea7e))
* **output:** add Rich theme of status roles and marks
([#7606](#7606))
([82a82f6](82a82f6))
* **telemetry:** rank usage errors by proposal class
([#7609](#7609))
([dd569fd](dd569fd)),
closes [#4840](#4840)


### Bug Fixes

* **ci:** refuse other commits on release branch
([#7220](#7220))
([#7610](#7610))
([5866f42](5866f42))
* **k8s:** wire mcp-server cluster tool settings
([#7348](#7348))
([#7605](#7605))
([76f326b](76f326b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): refuse other commits on the release branch

1 participant