Skip to content

chore: remove release-please workflow - #258

Open
matthewelwell wants to merge 1 commit into
mainfrom
chore/release-please-via-webhook-handler
Open

matthewelwell wants to merge 1 commit into
mainfrom
chore/release-please-via-webhook-handler

Conversation

@matthewelwell

Copy link
Copy Markdown
Contributor

Part of a batch across all Flagsmith repos that still carry an in-repo release-please workflow.

Why

github-webhook-handler already runs release-please for any repo with release-please-config.json and .release-please-manifest.json at its root. This repo has both.

It isn't doing so yet, because of a deliberate handover guard in should_run_release_please:

has_workflow = any(
    "release-please" in name and name.endswith((".yml", ".yaml"))
    for name in workflow_filenames
)
return (has_config and has_manifest) and not has_workflow

While this workflow exists the handler stands down and reports "release-please is not configured for this repository." Deleting it flips has_workflow to false and the handler takes over on the next push to the default branch. No gap, nothing to enable.

Verified before opening

  • Root release-please-config.json and .release-please-manifest.json both present (checked by HTTP status, not output parsing).
  • The flagsmith-engineering app is installed org-wide (repository_selection: all) and subscribed to push.
  • This workflow runs release-please and nothing else — no publish step gated on release_created / releases_created, and no other workflow depends on it via workflow_run.
  • Proven end to end: github-webhook-handler itself has no release-please workflow and its releases are cut by flagsmith-engineering[bot].

Security benefit

Tag and release creation moves off RELEASE_PLEASE_GITHUB_TOKEN — a PAT on the flagsmithdev user account, held as an org secret and last rotated 2024-07-19 — onto a short-lived GitHub App installation token. Once every repo is cut over, that PAT can be retired.

Downstream automation is unaffected: the handler creates releases and tags with an app installation token, so release and tag-push events still fire for workflows that listen for them.

How to confirm after merge

Merging is itself a push to the default branch, so it self-triggers. The release-please check on the merge commit should switch from github-actions to flagsmith-engineering and report "release-please ran successfully." If anything looks wrong, git revert restores the previous behaviour.

🤖 Generated with Claude Code

Release orchestration is handled by github-webhook-handler, which runs
release-please on default-branch pushes for any repo with release-please
config at its root. It stands down while a release-please workflow exists,
so deleting this file is the cutover.

Moves tag and release creation off the RELEASE_PLEASE_GITHUB_TOKEN PAT and
onto the flagsmith-engineering App's short-lived installation token.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@matthewelwell
matthewelwell requested a review from a team as a code owner November 28, 2026 15:12
@matthewelwell
matthewelwell requested review from emyller and removed request for a team November 28, 2026 15:12

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Deleting the active release-please workflow switches release and tag creation from the in-repo GitHub Action to the external github-webhook-handler; the diff only shows the deletion, while the claims about handler coverage and downstream events are not verifiable here.

Turn on auto-fix | Re-trigger cubic

@codspeed

codspeed Bot commented Nov 28, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 15 untouched benchmarks


Comparing chore/release-please-via-webhook-handler (ccd278a) with main (fafc6f7)

Open in CodSpeed

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