Commit 3860a49b authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'mc/feature/add-static-context-api-param' into 'master'

Add static context GitHub service API param

Closes #8477

See merge request gitlab-org/gitlab!17397
parents f329c18a 440023de
......@@ -414,6 +414,42 @@ Get Flowdock service settings for a project.
GET /projects/:id/services/flowdock
```
## GitHub **(PREMIUM)**
Code collaboration software.
### Create/Edit GitHub service
Set GitHub service for a project.
```
PUT /projects/:id/services/github
```
Parameters:
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `token` | string | true | GitHub API token with `repo:status` OAuth scope |
| `repository_url` | string | true | GitHub repository URL |
| `static_context` | boolean | false | Append instance name instead of branch to [status check name](../user/project/integrations/github.md#static--dynamic-status-check-names) |
### Delete GitHub service
Delete GitHub service for a project.
```
DELETE /projects/:id/services/github
```
### Get GitHub service settings
Get GitHub service settings for a project.
```
GET /projects/:id/services/github
```
## Hangouts Chat
Google GSuite team collaboration tool.
......
---
title: Add static_context API param when editing GitHub project service.
merge_request: 17397
author:
type: changed
......@@ -25,6 +25,12 @@ module EE
name: :repository_url,
type: String,
desc: "GitHub repository URL"
},
{
required: false,
name: :static_context,
type: ::API::Services::Boolean,
desc: 'Append instance name instead of branch to status check name'
}
],
'jenkins' => [
......
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