Commit graph

25 commits

Author SHA1 Message Date
Z.J. van de Weg
d7f298c177 Incorporate feedback 2017-01-30 20:37:06 +01:00
Z.J. van de Weg
5ec214b0a5 Rename presenters for consitency 2017-01-30 09:33:04 +01:00
Z.J. van de Weg
4ce1a17c97 Incorporate feedback 2017-01-30 09:25:15 +01:00
Z.J. van de Weg
dc6921bdbb Chat Commands have presenters
This improves the styling and readability of the code. This is supported
by both Mattermost and Slack.
2017-01-30 09:24:05 +01:00
Robert Speicher
80a6d2fda2 Use :empty_project where possible throughout spec/lib 2017-01-25 12:25:42 -05:00
Z.J. van de Weg
b7894a7451 Fix errorcode 500 on slash commands
Coverage was failing, so this could slip through the cracks
2016-12-23 09:46:32 +01:00
Kamil Trzcinski
0f2776287a
Use Slack::Notifier::LinkFormatter to convert markdown links to slack compat 2016-12-16 17:51:09 +01:00
Kamil Trzcinski
f9f1a508c6
Fix SlackSlashCommands tests 2016-12-16 17:51:08 +01:00
Z.J. van de Weg
0d3e24358b
Create Slack Slash command service 2016-12-16 17:51:07 +01:00
Z.J. van de Weg
13858d6873 Accept issue new as command to create an issue
Now only `/trigger issue create` is a valid command, but our UI shows
Issue new everywhere. The default now will be `/trigger issue new`. The
help message is adjusted to reflect this.

Fixes: gitlab-org/gitlab-ce#25025
2016-12-05 10:02:21 +01:00
Kamil Trzciński
35212deb06 Merge branch 'zj-issue-search-slash-command' into 'master'
Add issue search slash command

See merge request !7752
2016-11-29 11:04:17 +00:00
Z.J. van de Weg
6a08de7386 Add issue search slash command
One of many requested in: gitlab-org/gitlab-ce#24768
2016-11-25 15:41:28 +01:00
Z.J. van de Weg
d71ad49fc5 Accept a valid ref for issue show
For example, now we support `/gitlab issue show #1`. Where the # used
to trip the regex.
2016-11-25 12:33:57 +01:00
Z.J. van de Weg
3ff0575669 Issue creation now accepts trailing whitespace 2016-11-22 08:48:17 +01:00
Kamil Trzcinski
41aa605d4e Improve deploy command message 2016-11-21 21:36:22 +01:00
Kamil Trzcinski
d375e3f15b Fix specs and improve code readability 2016-11-21 18:22:03 +01:00
Kamil Trzcinski
a36d556137 Introduce deploy command that allows to start deployment from one environment to second one 2016-11-21 17:26:35 +01:00
Z.J. van de Weg
c72c76fde3 Fix typos 2016-11-18 14:23:26 +01:00
Z.J. van de Weg
f749fb7fe0 Improve style, add more tests 2016-11-18 11:38:54 +01:00
Z.J. van de Weg
0d04724fa1 More coverage on service level 2016-11-18 10:00:40 +01:00
Z.J. van de Weg
166ee0965b More refactoring, push present to base command 2016-11-17 21:44:26 +01:00
Z.J. van de Weg
1607efa400 Add tests for increased converage 2016-11-17 21:34:24 +01:00
Z.J. van de Weg
6737ada0c8 Remove some commands for now 2016-11-17 21:34:24 +01:00
Z.J. van de Weg
d4def9cbcd Incorporate feedback, improve presenter class
[ci skip]
2016-11-17 21:34:24 +01:00
Z.J. van de Weg
1b4fdb9893 Rename from service, and move to lib/gitlab 2016-11-17 21:34:24 +01:00