Add update-pr-description task type #59
Merged
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.
Summary
This PR adds a new task type
update-pr-descriptionthat allows Claude Code to update an existing PR's title and description after the PR has been created. This is useful when PRs need their descriptions revised based on additional context or changes.Changes
New Files
internal/claude/templates/update-pr-description.tmpl: Template that guides Claude Code through updating a PR description, including:gh pr editto update the PRModified Files
cmd/run.go: Added case handler forupdate-pr-descriptiontask type that validates the work has a PR URL and builds the appropriate promptinternal/claude/runner.go:update-pr-description.tmplBuildUpdatePRDescriptionPrompt()function to generate prompts for this task typeinternal/github/pr.go: AddedUpdatePRInDir()function to update PR title and body usinggh pr editIssues Resolved
Testing
The implementation follows existing patterns for task types (estimate, implement, review, pr). The new task type:
ghCLI for PR operationsNotes
This task type is designed to be used after a PR has been created, allowing for PR description updates when: