Set slack service for project
PUT
/v3/projects/{id}/services/slackSet slack service for project
请求参数
Path 参数
id
integer <int32>
必需
Body 参数application/x-www-form-urlencoded
webhook
string
必需
The Slack webhook. e.g. https://hooks.slack.com/services/...
new_issue_url
string
可选
The user name
channel
string
可选
The channel name
push_events
string
可选
Event will be triggered by a push to the repository
issue_events
string
可选
Event will be triggered when an issue is created/updated/closed
confidential_issue_events
string
可选
Event will be triggered when a confidential issue is created/updated/closed
merge_request_events
string
可选
Event will be triggered when a merge request is created/updated/merged
note_events
string
可选
Event will be triggered when someone adds a comment
tag_push_events
string
可选
Event will be triggered when a new tag is pushed to the repository
build_events
string
可选
Event will be triggered when a build status changes
pipeline_events
string
可选
wiki_page_events
string
可选
Event will be triggered when a wiki page is created/updated
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Set slack service for project
数据结构
object {0}
示例
{}
最后修改时间: 1 个月前