2020-10-24 23:57:45 +05:30
import { s _ _ } from '~/locale' ;
2020-07-28 23:09:34 +05:30
export const SUCCESS = 'success' ;
2019-07-07 11:18:12 +05:30
export const WARNING = 'warning' ;
export const DANGER = 'danger' ;
2020-10-24 23:57:45 +05:30
export const INFO = 'info' ;
2019-07-07 11:18:12 +05:30
export const WARNING _MESSAGE _CLASS = 'warning_message' ;
export const DANGER _MESSAGE _CLASS = 'danger_message' ;
2019-09-04 21:01:54 +05:30
export const MWPS _MERGE _STRATEGY = 'merge_when_pipeline_succeeds' ;
2019-12-04 20:38:33 +05:30
export const MTWPS _MERGE _STRATEGY = 'add_to_merge_train_when_pipeline_succeeds' ;
2019-09-04 21:01:54 +05:30
export const MT _MERGE _STRATEGY = 'merge_train' ;
2019-12-04 20:38:33 +05:30
export const AUTO _MERGE _STRATEGIES = [ MWPS _MERGE _STRATEGY , MTWPS _MERGE _STRATEGY , MT _MERGE _STRATEGY ] ;
2020-10-24 23:57:45 +05:30
// SP - "Suggest Pipelines"
export const SP _TRACK _LABEL = 'no_pipeline_noticed' ;
export const SP _LINK _TRACK _EVENT = 'click_link' ;
export const SP _SHOW _TRACK _EVENT = 'click_button' ;
export const SP _LINK _TRACK _VALUE = 30 ;
export const SP _SHOW _TRACK _VALUE = 10 ;
export const SP _HELP _CONTENT = s _ _ (
` mrWidget|Use %{linkStart}CI pipelines to test your code%{linkEnd} by simply adding a GitLab CI configuration file to your project. It only takes a minute to make your code more secure and robust. ` ,
) ;
export const SP _HELP _URL = 'https://about.gitlab.com/blog/2019/07/12/guide-to-ci-cd-pipelines/' ;
export const SP _ICON _NAME = 'status_notfound' ;
2021-06-08 01:23:25 +05:30
export const MERGE _ACTIVE _STATUS _PHRASES = [
{
message : s _ _ ( 'mrWidget|Merging! Drum roll, please…' ) ,
emoji : 'drum' ,
} ,
{
message : s _ _ ( "mrWidget|Merging! We're almost there…" ) ,
emoji : 'sparkles' ,
} ,
{
message : s _ _ ( 'mrWidget|Merging! Changes will land soon…' ) ,
emoji : 'airplane_arriving' ,
} ,
{
message : s _ _ ( 'mrWidget|Merging! Changes are being shipped…' ) ,
emoji : 'ship' ,
} ,
{
message : s _ _ ( "mrWidget|Merging! Everything's good…" ) ,
emoji : 'relieved' ,
} ,
{
message : s _ _ ( 'mrWidget|Merging! This is going to be great…' ) ,
emoji : 'heart_eyes' ,
} ,
] ;