diff options
Diffstat (limited to 'app/assets/javascripts/webhooks/constants.js')
-rw-r--r-- | app/assets/javascripts/webhooks/constants.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/assets/javascripts/webhooks/constants.js b/app/assets/javascripts/webhooks/constants.js new file mode 100644 index 00000000000..6710a418117 --- /dev/null +++ b/app/assets/javascripts/webhooks/constants.js @@ -0,0 +1,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 = '************'; |