summaryrefslogtreecommitdiff
path: root/lib/api/services.rb
diff options
context:
space:
mode:
authorMark Fletcher <mark@gitlab.com>2017-11-08 10:22:24 +0000
committerMark Fletcher <mark@gitlab.com>2017-11-08 19:48:19 +0000
commit12d622eb996b6499e5fbd2be01cca27c08a976fa (patch)
treefa1f41c5afd88034c52e39f04bb947147ad269e7 /lib/api/services.rb
parent0c3877a48827b587b407174410196993bec79f73 (diff)
downloadgitlab-ce-12d622eb996b6499e5fbd2be01cca27c08a976fa.tar.gz
Fix acceptance of username for Mattermost service update via API
Diffstat (limited to 'lib/api/services.rb')
-rw-r--r--lib/api/services.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb
index 6454e475036..bbcc851d07a 100644
--- a/lib/api/services.rb
+++ b/lib/api/services.rb
@@ -522,6 +522,12 @@ module API
name: :webhook,
type: String,
desc: 'The Mattermost webhook. e.g. http://mattermost_host/hooks/...'
+ },
+ {
+ required: false,
+ name: :username,
+ type: String,
+ desc: 'The username to use to post the message'
}
],
'teamcity' => [