diff options
author | Sarah Yasonik <syasonik@gitlab.com> | 2019-08-29 20:27:38 +0000 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-08-29 20:27:38 +0000 |
commit | 94720682a1314f769f37835d8e4e3df21650e77c (patch) | |
tree | b820d52d62f13bf2146ca94ced4dc4fd055b03d5 /lib/gitlab/slash_commands/presenters/issue_new.rb | |
parent | 6712b13393d97b39978decc143091fa7394e4fe3 (diff) | |
download | gitlab-ce-94720682a1314f769f37835d8e4e3df21650e77c.tar.gz |
Add a close issue slack slash command
Adds a slash command in slach for closing issues. See
https://docs.gitlab.com/ee/integration/slash_commands.html
for documentation on the wider feature set.
Diffstat (limited to 'lib/gitlab/slash_commands/presenters/issue_new.rb')
-rw-r--r-- | lib/gitlab/slash_commands/presenters/issue_new.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/gitlab/slash_commands/presenters/issue_new.rb b/lib/gitlab/slash_commands/presenters/issue_new.rb index ac78745ae70..1424a4ac381 100644 --- a/lib/gitlab/slash_commands/presenters/issue_new.rb +++ b/lib/gitlab/slash_commands/presenters/issue_new.rb @@ -36,15 +36,7 @@ module Gitlab end def pretext - "I created an issue on #{author_profile_link}'s behalf: **#{@resource.to_reference}** in #{project_link}" - end - - def project_link - "[#{project.full_name}](#{project.web_url})" - end - - def author_profile_link - "[#{author.to_reference}](#{url_for(author)})" + "I created an issue on #{author_profile_link}'s behalf: *#{@resource.to_reference}* in #{project_link}" end end end |