Skip to content

fix(ci): suppress pull_request runs on release-please PRs - #77

Merged
kunchenguid merged 2 commits into
mainfrom
fm/release-ci-treehouse-r2
Jul 31, 2026
Merged

fix(ci): suppress pull_request runs on release-please PRs#77
kunchenguid merged 2 commits into
mainfrom
fm/release-ci-treehouse-r2

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Summary

Release-please PRs are opened with GITHUB_TOKEN, so GitHub creates pull_request workflow runs that sit in action_required forever. Path filtering is the only native way to create zero runs.

This patch applies captain option A for treehouse:

  • ci.yml: paths-ignore for the exact release-output set (.release-please-manifest.json, CHANGELOG.md, flake.nix)
  • update-vendor-hash.yml: narrow paths to go.mod and go.sum only. vendorHash is a function of the Go module graph; release-please's version-only flake.nix edit must not create a run
  • release_ci_exclusions_test.go: derives the expected output set from release-please-config.json (go + extra-files) and asserts every PR-triggered workflow excludes the complete set, naming missing paths

Push / tag / release / workflow_dispatch triggers are untouched. No dispatcher, tokens, or ruleset changes.

Validation

Note on checks

This PR is opened under an explicit captain direct-PR override for the release-please CI rollout. A red no-mistakes-required check is expected because no no-mistakes signature is attached. It is not a defect in this change; do not treat it as a merge blocker (no required status checks exist on this repo). Do not merge while other substantive checks are red.

kunchenguid and others added 2 commits July 30, 2026 21:42
Release-please PRs opened with GITHUB_TOKEN create action_required
workflow runs that never start. Exclude the exact release-output set
from ordinary pull_request triggers so those PRs create zero runs.

- ci.yml: paths-ignore .release-please-manifest.json, CHANGELOG.md, flake.nix
- update-vendor-hash.yml: narrow paths to go.mod/go.sum (vendorHash
  follows the module graph; version-only flake.nix edits must not run)
- Add a drift test that derives the expected output set from
  release-please-config.json and asserts every PR workflow excludes it

Push, tag, release, and workflow_dispatch behavior is unchanged.
@kunchenguid
kunchenguid merged commit da7eda2 into main Jul 31, 2026
@kunchenguid
kunchenguid deleted the fm/release-ci-treehouse-r2 branch July 31, 2026 05:18
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