cli/pkg/i18n
Snider d3031d6b73 feat(php): add CI/CD pipeline command (#72)
* feat(php): add CI/CD pipeline command

Adds `core php ci` command for CI/CD integration:

- Runs all QA checks in optimal order (test, stan, psalm, fmt, audit, security)
- Generates combined reports in multiple formats:
  - JSON (--json) for machine consumption
  - Markdown summary (--summary) for PR comments
  - SARIF (--sarif) for static analysis tools
- Uploads SARIF to GitHub Security tab (--upload-sarif)
- Configurable failure threshold (--fail-on=critical|high|warning)

Example usage:
  core php ci                    # Run full pipeline
  core php ci --json             # Output JSON report
  core php ci --summary          # Output markdown for PR
  core php ci --sarif --upload-sarif  # Generate and upload SARIF

Closes #52

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

* fix(php): address CodeRabbit review feedback on CI command

- Remove unused --parallel flag
- Validate git SHA before SARIF upload
- Properly handle and validate SARIF generation output
- Exit with correct code when --json flag is used and pipeline fails

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

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 06:11:00 +00:00
..
locales feat(php): add CI/CD pipeline command (#72) 2026-02-01 06:11:00 +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