Repository navigation
Fix repo tagging for git worktrees and non-standard clone directories - #24
Conversation
Task: T4 (review fix)
Task: T4 (review fix 2)
PR Reviewer Guide 🔍(Review updated until commit fb42c8f)Here are some key observations to aid the review process:
|
Task: T3 (pr-agent review suggestion)
|
Persistent review updated to latest commit fb42c8f |
|
Review round 1 feedback:
All suites green locally (219 passed, 0 failed; |
|
/improve |
PR Code Suggestions ✨Latest suggestions up to fb42c8f
Previous suggestionsSuggestions up to commit e64f58e
|
|
Round 2 feedback — not applied: the borrow-conflict claim is contradicted by the checkable state. Commit fb42c8f compiles and CI is green on it: the Actions |
|
Reviewer summary for the human: Review process notes (things worth a sanity-check rather than taking on my certainty):
|
User description
Derives the
repo:tag from the origin remote URL instead of the show-toplevel directory basename, with a show-toplevel fallback when no remote exists or the URL is unparseable. Fixes misleading repo tags for git worktrees and ticket-named clone directories.Adds
repo_from_remote_url(sibling to the existingorg_from_remote_url) plus unit and integration tests.Design: design.md on this branch
PR Type
Bug fix, Tests, Documentation
Description
Derive
repo:tag from origin remote URL instead of show-toplevel basenameAdd
repo_from_remote_urlfunction mirroring existingorg_from_remote_urlFall back to show-toplevel basename when no remote or unparseable URL
Add unit and integration tests plus design/implementation documentation
Diagram Walkthrough
flowchart LR A["gather_env_tags"] --> B["git remote get-url origin"] B --> C{"URL present?"} C -- "Yes" --> D["repo_from_remote_url"] D --> E{"Parseable?"} E -- "Yes" --> F["Push repo: from URL"] E -- "No" --> G["Fallback: show-toplevel basename"] C -- "No" --> G B --> H["org_from_remote_url"] H --> I["Push org: tag"]File Walkthrough
tags.rs
Add repo_from_remote_url and restructure tag derivationsrc/tags.rs
repo_from_remote_urlfunction to extract repo name from remoteURL (SCP, ssh://, https://)
gather_env_tagsto deriverepo:from origin remote URLwith show-toplevel fallback via closure
repo_from_remote_urlcovering various URL formsand local path
gather_env_tagsrepo tag derivation withand without remotes
design.md
Design document for repo tag fixplanflow/changes/fix-repo-tag-worktree/design.md
non-standard clone directories
acceptance criteria
implementation.md
Implementation plan for repo tag fixplanflow/changes/fix-repo-tag-worktree/implementation.md
traceability
spec.md
Spec delta for repo tag requirementsplanflow/changes/fix-repo-tag-worktree/specs/tags/spec.md
fallback behavior
path fallback
work.md
Work plan and task allocationplanflow/changes/fix-repo-tag-worktree/work.md
housekeeping.md
Housekeeping note for formatting issueplanflow/housekeeping.md
gather_env_tags