Commit ebfc9d8
Test User
feat(cli): add comprehensive GitHub PR workflow commands
Add `codeframe pr` command group for GitHub Pull Request management:
- `pr create`: Create PRs with auto-generated descriptions from commits
- `pr list`: List PRs with status filtering and JSON output
- `pr get`: Get detailed PR information
- `pr merge`: Merge PRs with squash/merge/rebase strategies
- `pr close`: Close PRs without merging
- `pr status`: Show PR status for current branch
Implementation follows v2 CLI patterns (headless, no server required):
- Uses existing GitHubIntegration async client
- Wraps async calls with asyncio.run() for CLI context
- Full test coverage (23 tests) using TDD approach
- Environment-based configuration (GITHUB_TOKEN, GITHUB_REPO)
Commands registered in both v1 CLI (__init__.py) and v2 CLI (app.py).
Documentation updated in CLI_WIREFRAME.md with examples.1 parent c0a3261 commit ebfc9d8
5 files changed
Lines changed: 1232 additions & 26 deletions
File tree
- codeframe/cli
- docs
- tests/cli
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| 336 | + | |
335 | 337 | | |
336 | 338 | | |
337 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4161 | 4161 | | |
4162 | 4162 | | |
4163 | 4163 | | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
4164 | 4169 | | |
4165 | 4170 | | |
4166 | 4171 | | |
| |||
0 commit comments