2021-11-18 22:05:49 +05:30
|
|
|
export const stateToComponentMap = {
|
2017-08-17 22:00:37 +05:30
|
|
|
merged: 'mr-widget-merged',
|
|
|
|
closed: 'mr-widget-closed',
|
2017-09-10 17:25:29 +05:30
|
|
|
merging: 'mr-widget-merging',
|
2017-08-17 22:00:37 +05:30
|
|
|
conflicts: 'mr-widget-conflicts',
|
|
|
|
missingBranch: 'mr-widget-missing-branch',
|
2021-12-11 22:18:48 +05:30
|
|
|
draft: 'mr-widget-wip',
|
2017-08-17 22:00:37 +05:30
|
|
|
readyToMerge: 'mr-widget-ready-to-merge',
|
|
|
|
nothingToMerge: 'mr-widget-nothing-to-merge',
|
|
|
|
notAllowedToMerge: 'mr-widget-not-allowed',
|
|
|
|
archived: 'mr-widget-archived',
|
|
|
|
checking: 'mr-widget-checking',
|
|
|
|
unresolvedDiscussions: 'mr-widget-unresolved-discussions',
|
|
|
|
pipelineBlocked: 'mr-widget-pipeline-blocked',
|
|
|
|
pipelineFailed: 'mr-widget-pipeline-failed',
|
2019-09-04 21:01:54 +05:30
|
|
|
autoMergeEnabled: 'mr-widget-auto-merge-enabled',
|
2017-08-17 22:00:37 +05:30
|
|
|
failedToMerge: 'mr-widget-failed-to-merge',
|
|
|
|
autoMergeFailed: 'mr-widget-auto-merge-failed',
|
2018-05-09 12:01:36 +05:30
|
|
|
shaMismatch: 'sha-mismatch',
|
2018-03-17 18:26:18 +05:30
|
|
|
rebase: 'mr-widget-rebase',
|
2021-11-11 11:23:49 +05:30
|
|
|
mergeChecksFailed: 'mergeChecksFailed',
|
2017-08-17 22:00:37 +05:30
|
|
|
};
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
export const statesToShowHelpWidget = [
|
2017-09-10 17:25:29 +05:30
|
|
|
'merging',
|
2017-08-17 22:00:37 +05:30
|
|
|
'conflicts',
|
2021-12-11 22:18:48 +05:30
|
|
|
'draft',
|
2017-08-17 22:00:37 +05:30
|
|
|
'readyToMerge',
|
|
|
|
'checking',
|
|
|
|
'unresolvedDiscussions',
|
|
|
|
'pipelineFailed',
|
|
|
|
'pipelineBlocked',
|
|
|
|
'autoMergeFailed',
|
2018-03-17 18:26:18 +05:30
|
|
|
'rebase',
|
2017-08-17 22:00:37 +05:30
|
|
|
];
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
export const stateKey = {
|
|
|
|
archived: 'archived',
|
|
|
|
missingBranch: 'missingBranch',
|
|
|
|
nothingToMerge: 'nothingToMerge',
|
|
|
|
checking: 'checking',
|
|
|
|
conflicts: 'conflicts',
|
2021-12-11 22:18:48 +05:30
|
|
|
draft: 'draft',
|
2018-03-17 18:26:18 +05:30
|
|
|
pipelineFailed: 'pipelineFailed',
|
|
|
|
unresolvedDiscussions: 'unresolvedDiscussions',
|
|
|
|
pipelineBlocked: 'pipelineBlocked',
|
|
|
|
shaMismatch: 'shaMismatch',
|
|
|
|
autoMergeFailed: 'autoMergeFailed',
|
2019-09-04 21:01:54 +05:30
|
|
|
autoMergeEnabled: 'autoMergeEnabled',
|
2018-03-17 18:26:18 +05:30
|
|
|
notAllowedToMerge: 'notAllowedToMerge',
|
|
|
|
readyToMerge: 'readyToMerge',
|
|
|
|
rebase: 'rebase',
|
2021-11-18 22:05:49 +05:30
|
|
|
merging: 'merging',
|
2018-05-09 12:01:36 +05:30
|
|
|
merged: 'merged',
|
2021-11-11 11:23:49 +05:30
|
|
|
mergeChecksFailed: 'mergeChecksFailed',
|
2018-03-17 18:26:18 +05:30
|
|
|
};
|