go/pkg
Snider b16fa37dfd
feat(qa): add review command for PR status (#64)
* feat(qa): add qa watch command for CI monitoring (#47)

Implements `core qa watch` to monitor GitHub Actions after a push:
- Polls workflow runs for a commit until completion
- Shows live progress with pass/fail counts
- On failure, shows job name, failed step, and link to logs
- Exits with appropriate code (0 = passed, 1 = failed)

Usage:
  core qa watch              # Watch current repo's HEAD
  core qa watch --repo X     # Watch specific repo
  core qa watch --timeout 5m # Custom timeout

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(qa): address CodeRabbit feedback on watch command

- Add length check before slicing commitSha to prevent panic on short SHAs
- Count all non-success conclusions as failures (cancelled, timed_out, etc.)
- Use errors.E/Wrap pattern for consistent error handling with operation context

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(qa): add context-aware commands and log parsing

- Use exec.CommandContext with timeout context for all gh invocations
  so commands are cancelled when deadline expires
- Implement fetchErrorFromLogs using 'gh run view --log-failed'
  to extract first meaningful error line from failed workflows
- Pass context through call chain for proper timeout propagation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(qa): add review command for PR status (#62)

Add `core qa review` command to show PR review status with actionable
next steps. Answers: "What do I need to do to get my PRs merged?"
and "What reviews am I blocking?"

Features:
- Shows your open PRs with merge status (CI, reviews, conflicts)
- Shows PRs where your review is requested
- Provides actionable suggestions (rebase, address feedback, etc.)
- Flags: --mine, --requested, --repo

Closes #62

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(qa): add review command for PR status (#62)

Add `core qa review` command to show PR review status with actionable
next steps. Answers: "What do I need to do to get my PRs merged?"
and "What reviews am I blocking?"

Features:
- Shows your open PRs with merge status (CI, reviews, conflicts)
- Shows PRs where your review is requested
- Provides actionable suggestions (rebase, address feedback, etc.)
- Flags: --mine, --requested, --repo

Closes #62

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(qa): address CodeRabbit feedback on review command

- Fix truncate to use runes for UTF-8 safe string slicing
- Remove unused user parameter from showMyPRs and showRequestedReviews
- Remove unused getCurrentUser function

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(qa): remove duplicate i18n block and improve error handling

- Remove duplicate cmd.qa block in en_GB.json
- Use errors.E consistently for error wrapping
- Require --repo flag when not in a git repository

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 03:56:48 +00:00
..
agentic feat(framework): add QUERY/QUERYALL/PERFORM dispatch patterns 2026-01-30 10:18:54 +00:00
ai refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
build fix(vm): use double-dash flags for linuxkit build command (#57) 2026-02-01 01:49:00 +00:00
cache refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
ci refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cli fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
container test: increase coverage across packages 2026-01-29 13:19:08 +00:00
dev fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
devops refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
docs fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
doctor refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
errors feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
framework fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
git feat(framework): add QUERY/QUERYALL/PERFORM dispatch patterns 2026-01-30 10:18:54 +00:00
go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
i18n feat(qa): add review command for PR status (#64) 2026-02-01 03:56:48 +00:00
log feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
mcp refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
php fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
pkgcmd refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
process test(process): add concurrency tests and global function wrappers 2026-01-30 19:55:37 +00:00
qa feat(qa): add review command for PR status (#64) 2026-02-01 03:56:48 +00:00
release fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
repos feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
sdk refactor(i18n): migrate all pkg/* to grammar engine 2026-01-30 23:09:45 +00:00
setup fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
test refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
updater feat(php): add quality commands and split cmd/php for maintainability 2026-01-29 23:58:03 +00:00
vm refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
workspace fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00