summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-03-16 16:09:35 -0300
committerFelipe Artur <felipefac@gmail.com>2018-03-19 16:36:16 -0300
commit2ee197086a87d22c9203c9a3642f9db6d40f54c4 (patch)
treeed17b26860649febb1acf2a38764fb9080a03f04 /app/helpers
parent9fd2d9ea243e8691c7a7aa9575256ac636d59792 (diff)
downloadgitlab-ce-2ee197086a87d22c9203c9a3642f9db6d40f54c4.tar.gz
Improve JIRA event descriptionsissue_25542
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/services_helper.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/helpers/services_helper.rb b/app/helpers/services_helper.rb
index 240783bc7fd..f435c80c656 100644
--- a/app/helpers/services_helper.rb
+++ b/app/helpers/services_helper.rb
@@ -1,27 +1,4 @@
module ServicesHelper
- def service_event_description(event)
- case event
- when "push", "push_events"
- "Event will be triggered by a push to the repository"
- when "tag_push", "tag_push_events"
- "Event will be triggered when a new tag is pushed to the repository"
- when "note", "note_events"
- "Event will be triggered when someone adds a comment"
- when "issue", "issue_events"
- "Event will be triggered when an issue is created/updated/closed"
- when "confidential_issue", "confidential_issue_events"
- "Event will be triggered when a confidential issue is created/updated/closed"
- when "merge_request", "merge_request_events"
- "Event will be triggered when a merge request is created/updated/merged"
- when "pipeline", "pipeline_events"
- "Event will be triggered when a pipeline status changes"
- when "wiki_page", "wiki_page_events"
- "Event will be triggered when a wiki page is created/updated"
- when "commit", "commit_events"
- "Event will be triggered when a commit is created/updated"
- end
- end
-
def service_event_field_name(event)
event = event.pluralize if %w[merge_request issue confidential_issue].include?(event)
"#{event}_events"