Skip to content

Release reusables hardcode master — main-based repos can't cut a release #192

Closed

Description

@Shinrai

The v4 release flow assumes the default branch is master, with no default-branch detection and no base-branch input. The master assumption lives in the release action scripts — git/steps/find-divergence, github/jobs/create-release-pr/divergence.mjs, github/steps/check-existing-pr, github/steps/merge-master-into-branch — which git fetch origin master, gh pr list --base master, and open next → master.

Impact

Repos whose default branch is main (with no master branch) can't cut a release: on every push to next, the release workflow fails at git fetch origin master, and the persistent next → main release PR is never created. CI-gating and feature-merges into next still work (the push/PR-triggered workflows filter on [master, main, …]); only the release cut is blocked.

Confirmed on CLDMV/polyfillme (default main): its 🚀 Next Release (v4) run failed. CLDMV/cpm (default main) is in the same state.

Fix options

  • Teach the release actions to detect the repo's default branch (GitHub API repository.default_branch) or accept a base-branch input, so main-based repos work as-is. (The ci.yml caller already exposes default_branch; the release path doesn't consume an equivalent.)
  • Or: standardize that all CLDMV repos use master and rename the main-based ones.

Affects any current/future main-default repo onboarded to v4.

Activity

  1. added
    type: bug
    priority: high
    type: ci
    on Aug 3, 2026
  2. cldmv-bot commented on Aug 3, 2026

    @cldmv-bot
    Contributor

    Closed in v4.18.4 — resolved by #193.

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

    priority: hightype: bugtype: ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions