Skip to content

feat(release): an urgent fix merges the release pull request - #2596

Merged
dan-petty merged 2 commits into
mainfrom
feat/1966-release-urgent-auto-merge
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/1966-release-urgent-auto-merge

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

An urgent fix releases without a wait for a person. After release-please updates the release pull request, a new step of release.yml reads the pull request of the pushed commit and the issues that it closes. When the pull request has the label release-now, or an issue that it closes has priority/p0-critical, or type/security with priority/p1-high, the release App token runs gh pr merge --auto --squash on the release pull request. GitHub merges it when its checks pass, and the merge starts the run that creates the release. A GITHUB_TOKEN merge would start no run.

The owner asked for this on 2026-10-23 (#1966). An agent merges nothing: the workflow turns on GitHub auto-merge. The label is release-now, not release/now, because the guards against the deleted release-branch process refuse release/. RELEASE_CYCLE.md states the rule and how to stop an automatic release, and ADR 0013 records the amendment.

Closes #1966

Change: openspec/changes/archive/2026-10-29-1966-release-urgent-auto-merge/

After release-please updates the release pull request, a new step of
release.yml reads the pull request of the pushed commit and the issues
that it closes. When the pull request has the label release-now, or an
issue that it closes has priority/p0-critical, or type/security with
priority/p1-high, the release App token turns on GitHub auto-merge of
the release pull request. GitHub merges it when its checks pass, and
the merge starts the run that creates the release.

The label is release-now, not release/now: the guards against the
deleted release-branch process refuse "release/". RELEASE_CYCLE.md
states the rule, and ADR 0013 records the amendment that the owner
asked for on 2026-10-23.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence:

  • Failing first: test_an_urgent_fix_turns_on_auto_merge_of_the_release_pull_request failed with ValueError: list.index(x): x not in list before the step existed.
  • After the change: tests/test_workflow_contracts.py and tests/test_agents_md_claims.py 78 passed; the 13 test files that read labels.yml 611 passed; devops docs check passed; openspec validate --strict passed.
  • actionlint and zizmor --offline on release.yml: no findings.
  • The jq decision, run by hand with jq on nine label sets: release-now on the pull request, priority/p0-critical, type/security with priority/p1-high, and type/security with priority/p0-critical give true. type/security with priority/p2-medium, priority/p1-high alone and no labels give false.

Read on 2026-10-29: allow_auto_merge: true; the main ruleset requires Static Analysis, Tests & Coverage and Semantic PR title, 0 approvals, squash only, no bypass actor; no classic branch protection.

Pending a person:

  • After the merge, run devops gh labels sync so the label release-now exists.
  • At the first urgent fix, check in the Release run that the step turned on auto-merge, and that the merge started the run that created the release.
  • Review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 02:16
@dan-petty
dan-petty merged commit 20e8ac4 into main Oct 29, 2026
15 checks passed
@dan-petty
dan-petty deleted the feat/1966-release-urgent-auto-merge branch October 29, 2026 03:05
dan-petty pushed a commit that referenced this pull request Oct 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.14.0](v0.13.2...v0.14.0)
(2026-10-29)


### Features

* **argo:** apps status checks each pinned image against its registry
([#2605](#2605))
([6933005](6933005)),
closes [#1997](#1997)
* **k8s:** push the Argo CD notifier App's IDs and key
([#2608](#2608))
([a408dee](a408dee))
* **release:** an urgent fix merges the release pull request
([#2596](#2596))
([20e8ac4](20e8ac4))
* **roadmap:** a webhook event runs intake of its one issue
([#2607](#2607))
([cf9f02c](cf9f02c)),
closes [#2009](#2009)
* **roadmap:** devops roadmap intake-eval scores duplicates
([#2601](#2601))
([22146d6](22146d6))


### Code Refactoring

* **ai:** three in-process caches use cachetools
([#2611](#2611))
([0c30d2a](0c30d2a)),
closes [#1993](#1993)

---
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(release): the release pull request merges itself after its checks when an urgent fix lands

1 participant