Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8d0645c2
Commit
8d0645c2
authored
Dec 12, 2016
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grapify the service API
parent
593c9121
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
doc/api/services.md
doc/api/services.md
+16
-6
spec/models/project_services/hipchat_service_spec.rb
spec/models/project_services/hipchat_service_spec.rb
+1
-1
No files found.
doc/api/services.md
View file @
8d0645c2
...
@@ -153,9 +153,12 @@ PUT /projects/:id/services/builds-email
...
@@ -153,9 +153,12 @@ PUT /projects/:id/services/builds-email
Parameters:
Parameters:
-
`recipients`
(
**required**
) - Comma-separated list of recipient email addresses
| Attribute | Type | Required | Description |
-
`add_pusher`
(optional) - Add pusher to recipients list
| --------- | ---- | -------- | ----------- |
-
`notify_only_broken_builds`
(optional) -Notify only broken builds
|
`recipients`
| string | yes | Comma-separated list of recipient email addresses |
|
`add_pusher`
| boolean | no | Add pusher to recipients list |
|
`notify_only_broken_builds`
| boolean | no | Notify only broken builds |
### Delete Build-Emails service
### Delete Build-Emails service
...
@@ -538,7 +541,10 @@ PUT /projects/:id/services/mattermost-slash-commands
...
@@ -538,7 +541,10 @@ PUT /projects/:id/services/mattermost-slash-commands
Parameters:
Parameters:
-
`token`
(
**required**
) - The Mattermost token
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`token`
| string | yes | The Mattermost token |
### Delete Mattermost Slash Command service
### Delete Mattermost Slash Command service
...
@@ -570,8 +576,12 @@ PUT /projects/:id/services/pipelines-email
...
@@ -570,8 +576,12 @@ PUT /projects/:id/services/pipelines-email
Parameters:
Parameters:
-
`recipients`
(
**required**
) - Comma-separated list of recipient email addresses
| Attribute | Type | Required | Description |
-
`notify_only_broken_builds`
(optional) -Notify only broken pipelines
| --------- | ---- | -------- | ----------- |
|
`recipients`
| string | yes | Comma-separated list of recipient email addresses |
|
`add_pusher`
| boolean | no | Add pusher to recipients list |
|
`notify_only_broken_builds`
| boolean | no | Notify only broken pipelines |
### Delete Pipeline-Emails service
### Delete Pipeline-Emails service
...
...
spec/models/project_services/hipchat_service_spec.rb
View file @
8d0645c2
...
@@ -358,7 +358,7 @@ describe HipchatService, models: true do
...
@@ -358,7 +358,7 @@ describe HipchatService, models: true do
context
'with a failed build'
do
context
'with a failed build'
do
it
'uses the red color'
do
it
'uses the red color'
do
build_data
=
{
object_kind:
'build'
,
commit:
{
status:
'failed'
}
}
build_data
=
{
object_kind:
'build'
,
commit:
{
status:
'failed'
}
}
expect
(
hipchat
.
__send__
(
:message_options
,
build_data
)).
to
eq
({
notify:
false
,
color:
'red'
})
expect
(
hipchat
.
__send__
(
:message_options
,
build_data
)).
to
eq
({
notify:
false
,
color:
'red'
})
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment