Skip to content

chore(ci): open PR for changelog instead of pushing to protected main - #37

Merged
joaquinbejar merged 1 commit into
mainfrom
fix/changelog-pr
Sep 19, 2026
Merged

joaquinbejar merged 1 commit into
mainfrom
fix/changelog-pr

Conversation

@joaquinbejar

Copy link
Copy Markdown
Owner

The Update Changelog workflow (on v* tags) regenerated CHANGELOG.md and ran git push origin HEAD:main, which fails with GH006 because main is protected.

This replaces the last step with peter-evans/create-pull-request@v7: it opens a chore(changelog): update for <tag> PR from branch chore/changelog-<tag> against main, deleting the branch on merge. Adds pull-requests: write to the job permissions. Checkout and git-cliff steps are unchanged.

Gate: make pre-push exit 0, zero warnings.

The changelog workflow pushed directly to main, which fails with GH006 because main is protected. Use peter-evans/create-pull-request to open a PR with the regenerated CHANGELOG.md instead.
@codecov

codecov Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joaquinbejar
joaquinbejar merged commit 6597ac8 into main Sep 19, 2026
13 checks passed
@joaquinbejar
joaquinbejar deleted the fix/changelog-pr branch September 19, 2026 08:29
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