Skip to content

refactor(triggers): improve type safety and add missing triggers to registry#598

Merged
zbigniewsobiecki merged 1 commit intodevfrom
refactor/trigger-types-cleanup
Mar 1, 2026
Merged

refactor(triggers): improve type safety and add missing triggers to registry#598
zbigniewsobiecki merged 1 commit intodevfrom
refactor/trigger-types-cleanup

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • Add missing GitHub triggers (scm:pr-merged, scm:pr-ready-to-merge) to TRIGGER_REGISTRY
  • Use proper literal types (ContextStepName[], KnownProvider[]) instead of string[] in KnownTriggerEvent
  • Remove duplicate TRIGGER_CATEGORY_LABELS from frontend - now imports from shared types
  • Remove duplicate type definitions from CLI triggers.ts - now imports from shared modules
  • Standardize trigger descriptions to consistent past tense verb phrases
  • Add comprehensive unit tests for TRIGGER_REGISTRY

Test plan

  • All new TRIGGER_REGISTRY tests pass (19 tests in triggerTypes.test.ts)
  • TypeScript type checking passes
  • Biome lint passes
  • Pre-push hooks pass (all 3692 unit tests)
  • CI workflow passes

🤖 Generated with Claude Code

…egistry

- Add missing GitHub triggers (scm:pr-merged, scm:pr-ready-to-merge) to TRIGGER_REGISTRY
- Use proper literal types (ContextStepName[], KnownProvider[]) instead of string[]
- Remove duplicate TRIGGER_CATEGORY_LABELS from frontend (import from shared types)
- Remove duplicate type definitions from CLI triggers.ts (import from shared modules)
- Standardize trigger descriptions to consistent past tense verb phrases
- Add comprehensive unit tests for TRIGGER_REGISTRY
- Export ContextStepName and KnownProvider types from triggerTypes.ts for consumers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit 15406fe into dev Mar 1, 2026
6 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the refactor/trigger-types-cleanup branch March 1, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant