publish-release: gate auto-publish to bot merges on main only (release-model pilot) - #255
publish-release: gate auto-publish to bot merges on main only (release-model pilot)#255ptr727 wants to merge 6 commits into
Conversation
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) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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
pushtrigger tobranches: [main](no longer triggers ondeveloppushes). - Gate the
publishjob sopushevents only publish whengithub.actorisptr727-codegen[bot]ordependabot[bot]. - Allow
workflow_dispatchpublishes formainanddeveloponly.
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…task) Replace the inline event/actor gate with a plan job (publish-plan-task.yml) that computes publish once; validate and publish gate on its output. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…ch serves Docker) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… inherit secrets: inherit passes every secret, so singling out CODECOV_TOKEN is misleading noise. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
maindoes, plus manual dispatch.pushtrigger narrowed to[main]— bot merges todevelopno longer release;developprereleases come viaworkflow_dispatch.github.actor == 'ptr727-codegen[bot]'(the App merges every bot PR) /dependabot[bot], so a human merge/promotion tomainskips the release — the maintainer dispatches when the change is release-ready. Thepaths:filter still means an Actions-only bump publishes nothing.actor=ptr727-codegen[bot], human merges →actor=ptr727.Takes effect on
mainreleases once this promotes tomain. First repo of the rollout; the template docs (WORKFLOW.md/AGENTS.md) +PUBLISH_ON_MERGEdeletion follow.🤖 Generated with Claude Code