Commit 45d440d0 authored by James Lopez's avatar James Lopez

Merge branch 'add_comment_on_event_enabled_to_services_api' into 'master'

Add comment_on_event_enabled to services response

See merge request gitlab-org/gitlab!22605
parents 2e4b1944 2b3e5723
---
title: Add comment_on_event_enabled to services API
merge_request:
author:
type: added
......@@ -32,7 +32,8 @@ Example response:
"confidential_note_events": true,
"pipeline_events": true,
"wiki_page_events": true,
"job_events": true
"job_events": true,
"comment_on_event_enabled": true
}
{
"id": 76,
......@@ -50,7 +51,8 @@ Example response:
"confidential_note_events": true,
"pipeline_events": true,
"wiki_page_events": true,
"job_events": true
"job_events": true,
"comment_on_event_enabled": true
}
]
```
......@@ -723,6 +725,7 @@ Parameters:
| `jira_issue_transition_id` | string | no | The ID of a transition that moves issues to a closed state. You can find this number under the Jira workflow administration (**Administration > Issues > Workflows**) by selecting **View** under **Operations** of the desired workflow of your project. The ID of each state can be found inside the parenthesis of each transition name under the **Transitions (id)** column. By default, this ID is set to `2`. |
| `commit_events` | boolean | false | Enable notifications for commit events |
| `merge_requests_events` | boolean | false | Enable notifications for merge request events |
| `comment_on_event_enabled` | boolean | false | Enable comments inside Jira issues on each GitLab event (commit / merge request) |
### Delete Jira service
......@@ -761,6 +764,7 @@ Example response:
"note_events": true,
"job_events": true,
"pipeline_events": true,
"comment_on_event_enabled": false,
"properties": {
"token": "<your_access_token>"
}
......
......@@ -1132,7 +1132,7 @@ module API
expose :commit_events, :push_events, :issues_events, :confidential_issues_events
expose :merge_requests_events, :tag_push_events, :note_events
expose :confidential_note_events, :pipeline_events, :wiki_page_events
expose :job_events
expose :job_events, :comment_on_event_enabled
end
class ProjectService < ProjectServiceBasic
......
......@@ -16,7 +16,8 @@
"confidential_note_events": { "type": "boolean" },
"pipeline_events": { "type": "boolean" },
"wiki_page_events": { "type": "boolean" },
"job_events": { "type": "boolean" }
"job_events": { "type": "boolean" },
"comment_on_event_enabled": { "type": "boolean" }
},
"additionalProperties": false
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment