Skip to content

ci(release): a release is merged with a merge commit; the merge-back job is gone - #1959

Merged
singaraiona merged 1 commit into
devfrom
ci/release-drop-merge-back
Nov 30, 2026
Merged

singaraiona merged 1 commit into
devfrom
ci/release-drop-merge-back

Conversation

@singaraiona

Copy link
Copy Markdown
Collaborator

The Release workflow's merge-back job pushed a -s ours merge of the
release commit to dev with the PAT secret. Since dev moved behind its merge
queue it can't succeed: the ruleset rejects any direct push to dev ("Changes
must be made through the merge queue"), an admin's included, so v3.5.0's job
failed (#1955), and a manual run of the helper was rejected the same way.

It is also not needed. A release PR merged with a merge commit has the PR
head, the dev commit the release was cut from, as the release commit's
second parent. dev keeps growing from that commit, so the next release PR's
merge base is that commit and it shows only new work. master does not
require a pull request to be up to date with it, so the merge commit dev
lacks blocks nothing. After v3.5.0, compare master...dev shows 0 files.

  • release.yml: the merge-back job is replaced by ancestry, which reads
    the release commit's parents with GITHUB_TOKEN and fails when the second
    is not the PR head, that is, when a release was squashed or rebased.
    Checked against v3.5.0 (61a56d8) and v3.0.2 (d5a44cd), both green, and
    a mismatched head, red.
  • .github/release-merge-back.sh is removed. Nothing else used the PAT
    secret.
  • RELEASE.md: step 3 says to merge with a merge commit, step 4 lists the
    ancestry check, and the merge-back section becomes "Why a merge commit".

…job is gone

The Release workflow's merge-back job pushed a `-s ours` merge of the
release commit to dev with the PAT secret. Since dev moved behind its merge
queue it can't succeed: the ruleset rejects any direct push to dev ("Changes
must be made through the merge queue"), an admin's included, so v3.5.0's job
failed (#1955), and a manual run of the helper was rejected the same way.

It is also not needed. A release PR merged with a merge commit has the PR
head, the dev commit the release was cut from, as the release commit's
second parent. dev keeps growing from that commit, so the next release PR's
merge base is that commit and it shows only new work. master does not
require a pull request to be up to date with it, so the merge commit dev
lacks blocks nothing. After v3.5.0, compare master...dev shows 0 files.

- release.yml: the merge-back job is replaced by `ancestry`, which reads
  the release commit's parents with GITHUB_TOKEN and fails when the second
  is not the PR head, that is, when a release was squashed or rebased.
  Checked against v3.5.0 (61a56d8) and v3.0.2 (d5a44cd), both green, and
  a mismatched head, red.
- .github/release-merge-back.sh is removed. Nothing else used the PAT
  secret.
- RELEASE.md: step 3 says to merge with a merge commit, step 4 lists the
  ancestry check, and the merge-back section becomes "Why a merge commit".
@singaraiona
singaraiona added this pull request to the merge queue Nov 30, 2026
Merged via the queue into dev with commit 70740eb Nov 30, 2026
11 checks passed
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.

1 participant