cli/pkg/i18n
Snider ebbe01c427 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
..
locales feat(qa): add review command for PR status (#64) 2026-02-01 03:56:48 +00:00
compose.go feat(i18n): add options pattern and NewWithLoader constructor 2026-01-30 18:47:11 +00:00
compose_data_test.go refactor(i18n): rename intents_test.go to compose_data_test.go 2026-01-30 16:52:30 +00:00
compose_test.go feat(i18n): add options pattern and NewWithLoader constructor 2026-01-30 18:47:11 +00:00
context.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
context_test.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
debug.go docs(i18n): clarify Set* behaviour and fix CurrentLanguage default 2026-01-30 18:11:03 +00:00
grammar.go fix(i18n): address remaining code review issues 2026-01-30 19:10:28 +00:00
grammar_test.go refactor(i18n): consistent empty input handling and add doc comment 2026-01-30 18:15:28 +00:00
handler.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
handler_test.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
hooks.go feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
i18n.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
i18n_test.go fix(i18n): address remaining code review issues 2026-01-30 19:10:28 +00:00
interface_test.go refactor(i18n): remove C() and move intents to test-only 2026-01-30 16:50:08 +00:00
language.go refactor(i18n): final code standards cleanup 2026-01-30 18:08:33 +00:00
language_test.go feat(i18n): add Phase 4 extended language support 2026-01-30 12:55:41 +00:00
loader.go feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
loader_test.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00
localise.go docs(i18n): clarify Set* behaviour and fix CurrentLanguage default 2026-01-30 18:11:03 +00:00
mode_test.go fix(i18n): address thread-safety issues from code review 2026-01-30 19:02:30 +00:00
numbers.go refactor(i18n): consolidate types into interfaces.go 2026-01-30 17:24:24 +00:00
numbers_test.go refactor(i18n): remove legacy i18n.{format} shortcuts 2026-01-30 17:34:45 +00:00
service.go feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
time.go feat(i18n): add localized time formatting helpers 2026-01-30 14:44:42 +00:00
time_test.go refactor(i18n): remove legacy i18n.{format} shortcuts 2026-01-30 17:34:45 +00:00
transform.go fix(i18n): address remaining code review issues 2026-01-30 19:10:28 +00:00
types.go refactor(i18n): implement extensible handler chain architecture 2026-01-30 18:42:41 +00:00