Skip to content

ci(changelog): open PR instead of pushing to protected main#41

Merged
heznpc merged 1 commit into
mainfrom
ci/update-changelog-via-pr
May 20, 2026
Merged

ci(changelog): open PR instead of pushing to protected main#41
heznpc merged 1 commit into
mainfrom
ci/update-changelog-via-pr

Conversation

@heznpc
Copy link
Copy Markdown
Member

@heznpc heznpc commented May 20, 2026

Summary

Follow-up to applying branch protection (P0 #4 from the audit).

update-changelog.yml previously did git push to main directly. With branch protection now requiring 4 status checks before merge, that push would be rejected on the next release. github-actions[bot] is not an admin, so it can't bypass.

New flow

  1. Same prepend logic as before.
  2. Push to a per-release branch chore/changelog-<tag>.
  3. gh pr create opens a PR.
  4. gh pr merge --squash --auto --delete-branch enables auto-merge.
  5. CI runs and merges automatically when green.

Same end state, routed through the same gate every other change uses.

Test plan

  • yaml lint clean (visually)
  • First real release after this PR exercises the path

main is now branch-protected (required checks: ci (22), ci (24), analyze,
ai-review). github-actions[bot] can't bypass, so the previous direct push
would be rejected on the next release.

New flow:
- Same prepend logic as before
- Push to a per-release branch (chore/changelog-<tag>)
- Open a PR
- Enable auto-merge — squash + delete-branch
- CI runs and merges automatically when green

Same end state, just routed through the same gate every other change uses.
@heznpc heznpc enabled auto-merge (squash) May 20, 2026 23:33
@heznpc heznpc merged commit 4024c74 into main May 20, 2026
5 checks passed
@heznpc heznpc deleted the ci/update-changelog-via-pr branch May 20, 2026 23:34
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