Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-08-09 21:54:18 +0300
committerRémy Coutable <remy@rymai.me>2016-08-13 01:06:12 +0300
commit39f7f63fe951ff861ad151125188e6cdd598b6ff (patch)
tree8fa991298d3be0c8537f8402f4e17a5cd5e2eb28 /app/services/slash_commands
parent7cc4ab14b8a2f1d7d374a320b79374764527659f (diff)
Add the /title slash command
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/services/slash_commands')
-rw-r--r--app/services/slash_commands/interpret_service.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/slash_commands/interpret_service.rb b/app/services/slash_commands/interpret_service.rb
index bff61683976..74825f30868 100644
--- a/app/services/slash_commands/interpret_service.rb
+++ b/app/services/slash_commands/interpret_service.rb
@@ -34,6 +34,12 @@ module SlashCommands
@updates[:state_event] = 'reopen'
end
+ desc 'Change title'
+ params '<New title>'
+ command :title do |title_param|
+ @updates[:title] = title_param
+ end
+
desc 'Reassign'
params '@user'
command :assign, :reassign do |assignee_param|