FormatStageID returns the stage ID, using EmptyStageID placeholder if environment is empty.
(environment string)
| 608 | |
| 609 | // FormatStageID returns the stage ID, using EmptyStageID placeholder if environment is empty. |
| 610 | func FormatStageID(environment string) string { |
| 611 | if environment == "" { |
| 612 | return EmptyStageID |
| 613 | } |
| 614 | return environment |
| 615 | } |
| 616 | |
| 617 | // stageID is task environmentID. |
| 618 | func FormatStage(projectID string, planUID int64, stageID string) string { |
no outgoing calls
no test coverage detected