Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants.js « webhooks « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6710a4181172b2f80dfb828bfbe5112115924fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { s__ } from '~/locale';

export const BRANCH_FILTER_ALL_BRANCHES = 'all_branches';
export const BRANCH_FILTER_WILDCARD = 'wildcard';
export const BRANCH_FILTER_REGEX = 'regex';

export const WILDCARD_CODE_STABLE = '*-stable';
export const WILDCARD_CODE_PRODUCTION = 'production/*';

export const REGEX_CODE = '(feature|hotfix)/*';

export const descriptionText = {
  [BRANCH_FILTER_WILDCARD]: s__(
    'Webhooks|Wildcards such as %{WILDCARD_CODE_STABLE} or %{WILDCARD_CODE_PRODUCTION} are supported.',
  ),
  [BRANCH_FILTER_REGEX]: s__('Webhooks|Regex such as %{REGEX_CODE} is supported.'),
};

export const MASK_ITEM_VALUE_HIDDEN = '************';