debian-mirror-gitlab/app/assets/javascripts/webhooks/constants.js
2023-01-13 15:02:22 +05:30

19 lines
657 B
JavaScript

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 = '************';