Skip to content

Commit

Permalink
flag lifecycle name mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Jan 15, 2025
1 parent b150392 commit 2cb87bf
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { Lifecycle } from 'interfaces/featureToggle';

export const getFeatureLifecycleName = (stage: Lifecycle['stage']): string => {
if (stage === 'initial') {
return 'Define';
}
if (stage === 'pre-live') {
return 'Develop';
}
if (stage === 'live') {
return 'Production';
}
if (stage === 'completed') {
return 'Cleanup';
}
if (stage === 'archived') {
return 'Archived';
}

return stage;
};

0 comments on commit 2cb87bf

Please sign in to comment.