feat: add remote_repo variable - #3745
Open
canac wants to merge 1 commit into
Open
Conversation
worktrunk-bot
approved these changes
Aug 5, 2026
worktrunk-bot
left a comment
Collaborator
There was a problem hiding this comment.
Both sites that populate owner — build_hook_context and UserConfig::format_path — are updated, so the changelog's "available everywhere owner is" holds; GitRemoteUrl::repo() already strips .git in split_namespace_repo, and REPO_VARS, the help table, and the generated doc mirrors all move together.
On the name you asked about: remote_repo reads well beside the existing remote and remote_url, and the prefix is what disambiguates it from repo (the directory on disk), so I'd keep it. Worth an explicit call from @max-sixty before it ships, though — template variable names are part of the config surface, so renaming after a release is a break.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
remote_repovariable that returns the repo name from the remote URL. Unlikerepo, it stays consistent even if the clone was renamed.Feel free to reject, or suggest other names for the variable. But this change would improve my workflow. I hope you don't mind my submitting a PR before opening an issue. Thanks for an amazing developer tool!
AI Disclosure 🤖: I used Claude Code to generate the changes, but reviewed every line and made adjustments.