Skip to content

release.sh: set gh pr repo explicitly#685

Open
bjorkert wants to merge 1 commit into
devfrom
release-script-explicit-repo
Open

release.sh: set gh pr repo explicitly#685
bjorkert wants to merge 1 commit into
devfrom
release-script-explicit-repo

Conversation

@bjorkert

Copy link
Copy Markdown
Member

Makes the release flow's PR creation independent of gh's inferred default repository.

When a clone has multiple remotes, gh cannot guess which GitHub repo to act on and gh pr create fails with "No default remote repository has been set" — after the pushes have already happened, leaving the release half-finished.

This derives owner/repo from the origin remote URL (handling both HTTPS and SSH forms) and passes --repo to both gh pr create calls.

Derive owner/repo from the origin remote and pass --repo to both gh pr create calls so the release flow does not depend on gh's inferred default repo, which fails in clones with multiple remotes.
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