Skip to content

fix(ci): release.yml pushes the version bump straight to main, which the #1109 ruleset rejects #1162

Closed

Description

@admarble

Observed

.github/workflows/release.yml:87, in step Commit version bump, commits the version bump and runs a bare git push to main. Since #1109, main rejects direct pushes (GH013), so a dispatched release run fails at that step. #1131 moved the /release skill's step 6 to a PR, but it didn't touch this workflow. #1153's QA flagged it as a sibling of the upstream-assessment push fixed in PR #1155.

Fix direction (options as filed; superseded by the owner decision below)

Reuse #1153's pattern: a GitHub App token (actions/create-github-app-token) pushes a release/v<version> branch and opens a PR, and the tag and GitHub Release happen after that PR merges. The alternative is to drop the in-workflow bump, since /release already lands it through a PR (#1131), and have the workflow only tag and publish. Owner decision.

  • Tier: mechanical
    Owner decision (2026-09-25): delete release.yml. It has never run (gh run list --workflow release.yml is empty), and every release from v2.15.1 to v2.17.0 shipped through /release, which never calls it. Rejected: an App-token PR route (the fix(ci): upstream-assessment pushes its report straight to main, which the #1109 ruleset rejects #1153 pattern), because it adds machinery to a path nobody uses; and a tag-only workflow, because it's a second release path that would drift from /release.

  • AC-1: .github/workflows/release.yml no longer exists — Evidence: test ! -e .github/workflows/release.yml && echo absent prints absent

  • AC-2: no workflow in the repo pushes to main — Evidence: grep -rn "git push$" .github/workflows/ prints nothing

  • AC-3: nothing in the repo depends on the deleted file. The only remaining mentions are the hook-test command strings (gh workflow run release.yml in __tests__/pre-tool-hook.integration.test.ts and __tests__/fixtures/hook-corpus.jsonl) and a recorded opencode transcript fixture, which don't need the file to exist — Evidence: grep -rln "release\.yml" --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=dist . lists only those three files plus CHANGELOG.md (the removal entry)

Non-Goals

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added a commit that references this issue on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions