Skip to content

Fix: correctly parse git remote origin urls for calling Octokit #1539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

miguno
Copy link

@miguno miguno commented May 6, 2025

Fixes #1538.

Side note: I think @remote_url in the pre-deploy code is a misnomer, because it is not an actual URL. It should be the name for Octokit#combined_status's first parameter, which takes the form basecamp/kamal for a git remote url https://github.com/basecamp/kamal.git. I'd suggest @github_repo because Octokit names the first parameter repo, but I intentionally didn't rename @remote_url in this PR because other code might depend upon the current name.

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.

pre-deploy hook: sample file fails to work because it parses git remotes incorrectly
1 participant