feat(KB-200): add pr-create CLI command for task PR creation

- Implement kb task pr-create command to open GitHub PRs from tasks\n- Add draft PR support and title/description customization options\n- Integrate routing in CLI entry point with proper argument parsing\n- Add comprehensive test coverage for the new command\n- Update STANDALONE.md documentation and add changeset for release tracking
This commit is contained in:
gsxdsm
2026-03-31 03:27:11 -07:00
parent d34951a913
commit 3fe8dd3c89
5 changed files with 522 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
---
"@dustinbyrne/kb": minor
---
Add `kb task pr-create` command for creating GitHub PRs from in-review tasks
The new CLI command enables headless GitHub workflows for users who prefer the CLI over the dashboard web UI:
- `kb task pr-create <id>` - Create a PR for a task in the "in-review" column
- `kb task pr-create <id> --title "Custom PR title"` - Override the default PR title
- `kb task pr-create <id> --base develop` - Target a different base branch
- `kb task pr-create <id> --body "PR description"` - Add a PR description
The command validates that the task is in the "in-review" column, determines the repository from `GITHUB_REPOSITORY` env var or git remote, and requires GitHub authentication via `gh auth login` or `GITHUB_TOKEN`.