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
7da7bdc7
Commit
7da7bdc7
authored
Jun 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
64cbe5c8
51267258
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
changelogs/unreleased/59702-fix-notification-flags-for-ms-teams.yml
.../unreleased/59702-fix-notification-flags-for-ms-teams.yml
+5
-0
doc/api/services.md
doc/api/services.md
+2
-0
doc/ci/pipelines.md
doc/ci/pipelines.md
+1
-1
lib/api/helpers/services_helpers.rb
lib/api/helpers/services_helpers.rb
+3
-2
spec/models/project_services/microsoft_teams_service_spec.rb
spec/models/project_services/microsoft_teams_service_spec.rb
+12
-0
No files found.
changelogs/unreleased/59702-fix-notification-flags-for-ms-teams.yml
0 → 100644
View file @
7da7bdc7
---
title
:
Fix missing API notification flags for Microsoft Teams
merge_request
:
29824
author
:
Seiji Suenaga
type
:
fixed
doc/api/services.md
View file @
7da7bdc7
...
...
@@ -1023,6 +1023,8 @@ Parameters:
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`webhook`
| string | true | The Microsoft Teams webhook. For example,
`https://outlook.office.com/webhook/...`
|
|
`notify_only_broken_pipelines`
| boolean | false | Send notifications for broken pipelines |
|
`notify_only_default_branch`
| boolean | false | Send notifications only for the default branch |
|
`push_events`
| boolean | false | Enable notifications for push events |
|
`issues_events`
| boolean | false | Enable notifications for issue events |
|
`confidential_issues_events`
| boolean | false | Enable notifications for confidential issue events |
...
...
doc/ci/pipelines.md
View file @
7da7bdc7
...
...
@@ -139,7 +139,7 @@ The union of A, B, and C is (1, 4) and (6, 7). Therefore, the total running time
(4 - 1) + (7 - 6) => 4
```
## Expanding and collapsing job log sections
##
#
Expanding and collapsing job log sections
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/14664) in GitLab
> 12.0.
...
...
lib/api/helpers/services_helpers.rb
View file @
7da7bdc7
...
...
@@ -683,8 +683,9 @@ module API
name: :webhook
,
type:
String
,
desc:
'The Microsoft Teams webhook. e.g. https://outlook.office.com/webhook/…'
}
],
},
chat_notification_flags
].
flatten
,
'mattermost'
=>
[
chat_notification_settings
,
chat_notification_flags
,
...
...
spec/models/project_services/microsoft_teams_service_spec.rb
View file @
7da7bdc7
...
...
@@ -289,6 +289,18 @@ describe MicrosoftTeamsService do
expect
(
result
).
to
be_falsy
end
end
context
'when disabled'
do
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
:failed
,
project:
project
,
ref:
'not-the-default-branch'
)
end
before
do
chat_service
.
notify_only_default_branch
=
false
end
it_behaves_like
'call Microsoft Teams API'
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