Skip to content

ci: set repo context for the release PR merge - #28

Merged
jflayhart merged 1 commit into
mainfrom
ci/release-merge-repo-context
Jun 10, 2026
Merged

ci: set repo context for the release PR merge#28
jflayhart merged 1 commit into
mainfrom
ci/release-merge-repo-context

Conversation

@jflayhart

Copy link
Copy Markdown
Contributor

Problem

The merge step fails on every run:

failed to run git: fatal: not a git repository (or any of the parent directories): .git

This workflow never runs actions/checkout (release-please works via the API), so gh pr merge <number> has no git context to resolve the repo from.

Fix

Set GH_REPO: ${{ github.repository }} in the step env so gh targets the repo explicitly.

Also: why the previous CI fix triggered a release

The prior hotfix was typed fix(ci): — release-please bumps on the fix type (scope is irrelevant), so it opened a pointless patch release PR. This PR is typed ci:, which release-please ignores for versioning. Going forward, CI-only changes should use the ci: type, not fix(ci):.

The Release Please workflow never checks out the repo, so gh pr merge fails
with 'not a git repository'. Set GH_REPO so gh targets the repo via the API.
@jflayhart
jflayhart merged commit b1d4966 into main Jun 10, 2026
5 checks passed
@jflayhart
jflayhart deleted the ci/release-merge-repo-context branch June 10, 2026 04:10
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