Skip to content

Carry private-preview's CI workflow branch list on master - #1897

Merged
jar-stripe merged 1 commit into
masterfrom
jar/ci-pp-parity
Aug 28, 2026
Merged

Carry private-preview's CI workflow branch list on master#1897
jar-stripe merged 1 commit into
masterfrom
jar/ci-pp-parity

Conversation

@jar-stripe

@jar-stripe jar-stripe commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Why?

Our codegen GitHub Actions job's push to latest-codegen-private-preview is rejected by GitHub: the master→private-preview merge produces a ci.yml that exists nowhere in the repository, and the App performing the push has no workflows permission. GitHub allows changes to workflow files that are carried forward in merged commits, so this PR adds in any lines that were exclusive to the private preview branch's workflow file to ensure a merge with no additional workflow file changes.

What?

  • adds private-preview to on.push.branches

See Also

private-preview's ci.yml differs from master's by one additive hunk:
`private-preview` in `on.push.branches`.

Because that hunk lives only on private-preview, every merge of master into
private-preview yields a workflow blob matching neither parent. GitHub refuses a
push from a GitHub App lacking `workflows` permission when it introduces a
workflow blob that does not already exist in the repository, so the sdk-codegen
Codegen job's push to latest-codegen-private-preview is rejected and a human has
to perform the merge by hand. Holding the hunk on master too means both sides of
the merge carry the same change, the merge result is byte-identical to master's
blob, and the App only ever carries an already-committed file forward.

The hunk is a no-op on master. For a push event the workflow file comes from the
pushed ref, so master's copy listing private-preview is never consulted for a
push to private-preview, and it cannot affect pushes to master or beta.
`on.pull_request.branches` already lists private-preview.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Committed-By-Agent: claude
@jar-stripe
jar-stripe marked this pull request as ready for review August 28, 2026 19:55
@jar-stripe
jar-stripe requested a review from a team as a code owner August 28, 2026 19:55
@jar-stripe
jar-stripe requested review from zacchua-stripe and removed request for a team August 28, 2026 19:55
@jar-stripe
jar-stripe merged commit c0282c7 into master Aug 28, 2026
19 checks passed
@jar-stripe
jar-stripe deleted the jar/ci-pp-parity branch August 28, 2026 23:01
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.

3 participants