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:
authorHarrison Healey <harrisonmhealey@gmail.com>2018-05-15 18:13:49 +0300
committerHarrison Healey <harrisonmhealey@gmail.com>2018-05-28 16:18:43 +0300
commitf124b6fd11a40d4538c64b5734e08727cba24305 (patch)
tree9e7b44375bd1f7ed2dcd57901c4007f49dea3def /lib/mattermost/command.rb
parent71dea693c61295c16cb9c28c76b1122a3b8a3acf (diff)
Updated Mattermost integration to use Mattermost API v4
Diffstat (limited to 'lib/mattermost/command.rb')
-rw-r--r--lib/mattermost/command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mattermost/command.rb b/lib/mattermost/command.rb
index 33e450d7f0a..704813dfdf0 100644
--- a/lib/mattermost/command.rb
+++ b/lib/mattermost/command.rb
@@ -1,7 +1,7 @@
module Mattermost
class Command < Client
def create(params)
- response = session_post("/api/v3/teams/#{params[:team_id]}/commands/create",
+ response = session_post('/api/v4/commands',
body: params.to_json)
response['token']