Repository navigation
ci(release): a release is merged with a merge commit; the merge-back job is gone - #1959
Merged
Merged
Conversation
…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".
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.
The Release workflow's merge-back job pushed a
-s oursmerge of therelease 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.
ancestry, which readsthe 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.
secret.
ancestry check, and the merge-back section becomes "Why a merge commit".