Module: PlanMyStuff::Pipeline::Status
- Defined in:
- lib/plan_my_stuff/pipeline/status.rb
Overview
Canonical pipeline status constants.
Each constant holds the human-readable status name that maps to a GitHub Projects V2 single-select field value. Consuming apps can override display names via PlanMyStuff.configuration.pipeline_statuses but the canonical names here remain the internal identifiers.
Constant Summary collapse
- SUBMITTED =
'Submitted'- STARTED =
'Started'- IN_REVIEW =
'In Review'- TESTING =
'Testing'- READY_FOR_RELEASE =
'Ready for Release'- RELEASE_IN_PROGRESS =
'Release in Progress'- COMPLETED =
'Completed'- ALL =
All statuses in pipeline order (frozen).
[ SUBMITTED, STARTED, IN_REVIEW, TESTING, READY_FOR_RELEASE, RELEASE_IN_PROGRESS, COMPLETED, ].freeze
Class Method Summary collapse
-
.key_for(canonical) ⇒ String
Converts a canonical status name to a snake_case key suitable for notification event names.
Class Method Details
.key_for(canonical) ⇒ String
Converts a canonical status name to a snake_case key suitable for notification event names.
39 40 41 |
# File 'lib/plan_my_stuff/pipeline/status.rb', line 39 def self.key_for(canonical) canonical.downcase.tr(' ', '_') end |