diff options
Diffstat (limited to 'app/assets/javascripts/integrations/constants.js')
-rw-r--r-- | app/assets/javascripts/integrations/constants.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/assets/javascripts/integrations/constants.js b/app/assets/javascripts/integrations/constants.js index b9975eed716..87e9f818f96 100644 --- a/app/assets/javascripts/integrations/constants.js +++ b/app/assets/javascripts/integrations/constants.js @@ -30,12 +30,46 @@ export const integrationFormSections = { CONNECTION: 'connection', JIRA_TRIGGER: 'jira_trigger', JIRA_ISSUES: 'jira_issues', + TRIGGER: 'trigger', }; export const integrationFormSectionComponents = { [integrationFormSections.CONNECTION]: 'IntegrationSectionConnection', [integrationFormSections.JIRA_TRIGGER]: 'IntegrationSectionJiraTrigger', [integrationFormSections.JIRA_ISSUES]: 'IntegrationSectionJiraIssues', + [integrationFormSections.TRIGGER]: 'IntegrationSectionTrigger', +}; + +export const integrationTriggerEvents = { + PUSH: 'push_events', + ISSUE: 'issues_events', + CONFIDENTIAL_ISSUE: 'confidential_issues_events', + MERGE_REQUEST: 'merge_requests_events', + NOTE: 'note_events', + CONFIDENTIAL_NOTE: 'confidential_note_events', + TAG_PUSH: 'tag_push_events', + PIPELINE: 'pipeline_events', + WIKI_PAGE: 'wiki_page_events', +}; + +export const integrationTriggerEventTitles = { + [integrationTriggerEvents.PUSH]: s__('IntegrationEvents|A push is made to the repository'), + [integrationTriggerEvents.ISSUE]: s__( + 'IntegrationEvents|An issue is created, updated, or closed', + ), + [integrationTriggerEvents.CONFIDENTIAL_ISSUE]: s__( + 'IntegrationEvents|A confidential issue is created, updated, or closed', + ), + [integrationTriggerEvents.MERGE_REQUEST]: s__( + 'IntegrationEvents|A merge request is created, updated, or merged', + ), + [integrationTriggerEvents.NOTE]: s__('IntegrationEvents|A comment is added on an issue'), + [integrationTriggerEvents.CONFIDENTIAL_NOTE]: s__( + 'IntegrationEvents|A comment is added on a confidential issue', + ), + [integrationTriggerEvents.TAG_PUSH]: s__('IntegrationEvents|A tag is pushed to the repository'), + [integrationTriggerEvents.PIPELINE]: s__('IntegrationEvents|A pipeline status changes'), + [integrationTriggerEvents.WIKI_PAGE]: s__('IntegrationEvents|A wiki page is created or updated'), }; export const billingPlans = { |