Thanks to visit codestin.com
Credit goes to github.com

Skip to content

publish-release: gate auto-publish to bot merges on main only (release-model pilot)#255

Open
ptr727 wants to merge 2 commits into
developfrom
feature/release-gate-pilot
Open

publish-release: gate auto-publish to bot merges on main only (release-model pilot)#255
ptr727 wants to merge 2 commits into
developfrom
feature/release-gate-pilot

Conversation

@ptr727

@ptr727 ptr727 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Pilot of the fleet release-model change (per maintainer decision): a human PR merge never auto-cuts a release; only a bot (Dependabot/codegen) code-merge to main does, plus manual dispatch.

  • push trigger narrowed to [main] — bot merges to develop no longer release; develop prereleases come via workflow_dispatch.
  • Publish job gated to github.actor == 'ptr727-codegen[bot]' (the App merges every bot PR) / dependabot[bot], so a human merge/promotion to main skips the release — the maintainer dispatches when the change is release-ready. The paths: filter still means an Actions-only bump publishes nothing.
  • Empirically validated: recent runs show bot merges → actor=ptr727-codegen[bot], human merges → actor=ptr727.

Takes effect on main releases once this promotes to main. First repo of the rollout; the template docs (WORKFLOW.md/AGENTS.md) + PUBLISH_ON_MERGE deletion follow.

🤖 Generated with Claude Code

A human PR merge no longer auto-cuts a release. The publish job runs on a
push only for a bot merge (the codegen App merges every Dependabot/codegen
PR, so its identity gates it); a human merge/promotion skips and the
maintainer dispatches when ready. Narrow the push trigger to main so bot
merges to develop don't release; develop prereleases come via dispatch.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 10, 2026 04:36
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (adba4dc) to head (7827c81).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #255   +/-   ##
========================================
  Coverage    99.76%   99.76%           
========================================
  Files           15       15           
  Lines       232994   232994           
  Branches       243      243           
========================================
  Hits        232450   232450           
  Misses         462      462           
  Partials        82       82           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the release automation policy in the publish-release workflow so that automatic publishes only happen from main, and only when the push is performed by specific bot identities, while keeping manual publishing via workflow_dispatch for main and develop.

Changes:

  • Narrow the push trigger to branches: [main] (no longer triggers on develop pushes).
  • Gate the publish job so push events only publish when github.actor is ptr727-codegen[bot] or dependabot[bot].
  • Allow workflow_dispatch publishes for main and develop only.

Comment thread .github/workflows/publish-release.yml Outdated
Copilot AI review requested due to automatic review settings July 10, 2026 04:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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.

2 participants