Conversation
- Add --rename-prefix CLI option that renames the session to
{prefix}-{issue_key_slug} after linking
- Include renamed_from field in JSON output when rename occurs
- Update display output to use the new session name after rename
- Remove @require_outside_claude decorator from link_jira function
- Add tests for rename-prefix functionality including edge cases
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
4 tasks
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.
Now I have enough context to fill in the template.
Jira Issue: #383
Description
Enhances the
daf linkcommand to support session renaming via a new--rename-prefixoption and enables it to be called from inside Claude sessions.Motivation: As part of the effort to remove thin
daf gitcommand wrappers and leveragegh/glabCLI tools directly via skills (#383-#386),daf linkneeds to absorb the session-rename functionality currently embedded indaf git create. This is a prerequisite for removingdaf git create(#384).Changes:
--rename-prefixoption todaf linkthat renames the session to{prefix}-{issue_key_slug}(e.g.,creation-itdove-devaiflow-456)@require_outside_claudedecorator sodaf linkcan be called from inside Claude sessionsissue_key_to_session_name()fromsync_command.pyfor consistent slug generationmain.pyAssisted-by: Claude
Testing
Steps to test
daf new my-test-sessiongh issue create --title "Test issue" --body "test" --label enhancementdaf link my-test-session --jira "#<issue_number>" --rename-prefix creationcreation-<owner>-<repo>-<issue_number>issue_keyandissue_metadataare set on the renamed sessiondaf linkfrom inside a Claude session to confirm the@require_outside_clauderestriction is liftedpytest tests/test_link_command.pyScenarios tested
daf linkwith--rename-prefixrenames session correctly usingissue_key_to_session_name()slug formatdaf linkwithout--rename-prefixcontinues to work as before (no rename, just links metadata)daf linkcallable from inside Claude sessions (in-agent usage)Deployment considerations