Skip to content

chore: remove release-please workflow - #303

Merged
matthewelwell merged 1 commit into
mainfrom
chore/release-please-via-webhook-handler
Nov 30, 2026
Merged

matthewelwell merged 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:13
@matthewelwell
matthewelwell requested review from emyller and removed request for a team November 28, 2026 15:13

@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: Removes the in-repo release-please workflow so an external github-webhook-handler takes over releases. The diff is a single-file deletion, but the switch depends on external configuration and operational claims not visible in this PR.

Turn on auto-fix | Re-trigger cubic

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.75%. Comparing base (e5edf7a) to head (25d6d3b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #303   +/-   ##
=======================================
  Coverage   97.75%   97.75%           
=======================================
  Files         114      114           
  Lines        5176     5176           
=======================================
  Hits         5060     5060           
  Misses        116      116           

☔ 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.

@matthewelwell
matthewelwell merged commit 756f6d2 into main Nov 30, 2026
5 checks passed
@matthewelwell
matthewelwell deleted the chore/release-please-via-webhook-handler branch November 30, 2026 15:40
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.

3 participants