debian-mirror-gitlab/app/assets/javascripts/vue_merge_request_widget/constants.js

55 lines
1.8 KiB
JavaScript
Raw Normal View History

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',
},
];