Skip to content

fix(release): drop the plugins that commit a version bump back to main - #74

Merged
Mearman merged 1 commit into
mainfrom
fix/release-drop-git-plugin
Sep 11, 2026
Merged

fix(release): drop the plugins that commit a version bump back to main#74
Mearman merged 1 commit into
mainfrom
fix/release-drop-git-plugin

Conversation

@Mearman

@Mearman Mearman commented Sep 11, 2026

Copy link
Copy Markdown
Member

This repo's own branch ruleset ("main required checks") enforces a pull_request rule -- every change to main must go through a PR with the Required Checks status passing -- and its bypass_actors only grant the RepositoryRole bypass (a repo owner's personal account bypasses it, the GITHUB_TOKEN identity semantic-release runs as does not). @semantic-release/git's direct commit+push of a version bump is therefore permanently rejected here.

Confirmed on the first push that got this far (34656198871), after the writer-version fix: analyzeCommits and generateNotes both completed successfully this time, then @semantic-release/git's push failed outright with "GH013: Repository rule violations... Changes must be made through a pull request."

Dropping @semantic-release/git (and @semantic-release/changelog, which only existed to feed it a CHANGELOG.md entry) leaves npm publish, the GitHub Release, and the git tag all still working -- none of those write to the main branch ref, only the tag ref, which the ruleset's own conditions (refs/heads/main only) don't restrict. The tag, GitHub Release, and npm registry are the release's source of truth for version; this repo's own package.json isn't expected to track it, matching the repo's existing deliberate choice to keep main PR-only rather than loosening that policy to accommodate a bot push.

This repo's own branch protection requires every change to main go
through a pull request with Required Checks passing -- a policy the
GITHUB_TOKEN identity semantic-release runs as has no bypass for,
unlike a repo owner's personal account. @semantic-release/git's direct
push of a version-bump commit is therefore permanently rejected here,
confirmed on the first push that got this far: "GH013: Repository rule
violations... Changes must be made through a pull request."

Dropping @semantic-release/git (and @semantic-release/changelog, which
existed only to feed it a CHANGELOG.md entry) leaves npm publish, the
GitHub Release, and the git tag all still working -- none of those
write to the main branch ref, only the tag ref, which this repo's
ruleset does not restrict. The tag, the GitHub Release, and the npm
registry are the release's source of truth for its version; the
repository's own package.json is not expected to reflect it.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-11T23:06:51.725786Z 369eed9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman

Mearman commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Mearman
Mearman merged commit 1c27524 into main Sep 11, 2026
8 checks passed
@Mearman
Mearman deleted the fix/release-drop-git-plugin branch September 11, 2026 23:04
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