-
Notifications
You must be signed in to change notification settings - Fork 0
feat(namegen): deterministic worktree names (ccw-<owner>-<repo>-<shorthash6>) #48
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6216579
docs(spec): 決定論的な worktree 名 (ccw-<owner>-<repo>-<shorthash6>) 設計
tqer39 66a0d09
docs(plan): 決定論的な worktree 名 (ccw-<owner>-<repo>-<shorthash6>) 実装プラン
tqer39 c75e2e7
fix(picker): bubbletea v2 / lipgloss v2 のテスト破壊を解消
tqer39 e73c432
feat(gitx): add ParseOriginURL for SSH/HTTPS git remotes
tqer39 d11da33
feat(gitx): add OriginURL wrapper that treats no-origin as empty
tqer39 6af5e4d
feat(gitx): add DefaultBranch with origin/HEAD → main → master fallback
tqer39 e67d0c9
feat(gitx): add ShortHash wrapping git rev-parse --short
tqer39 71c8209
feat(namegen): replace random slug with deterministic ccw-<owner>-<re…
tqer39 8ce841e
docs: update Naming convention section for ccw-<owner>-<repo>-<shorth…
tqer39 e4b4751
chore(workflows): pinact normalizes action version comments
tqer39 d02452c
fix(namegen): worktree-list collision check + error guidance + test gaps
tqer39 61f8c16
Merge remote-tracking branch 'origin/main' into worktree-jolly-lion-bf9c
tqer39 b07e63e
chore: translate Go test comments to English
tqer39 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hint is too narrow for the error space, and duplicated at the picker call site.
namegen.Generatecan fail for several distinct reasons (origin URL parse, default branch resolution, short hash, worktree enumeration, collision cap of 99, normalization). The current hint only addresses the default-branch case and may mislead users when the failure is e.g. a malformedoriginURL, a missing tip commit, or a saturated collision suffix space. The same exact message is also duplicated at lines 102–106 inrunPicker— worth extracting a helper and/or tailoring the hint to the underlying error category.♻️ Suggested refactor — extract helper, log raw error
📝 Committable suggestion
🤖 Prompt for AI Agents