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
e35d77ed
Commit
e35d77ed
authored
Oct 12, 2021
by
Luke Duncalfe
Committed by
Alex Kalderimis
Oct 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing API docs for Discord integration
parent
515c5104
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
doc/api/integrations.md
doc/api/integrations.md
+34
-0
lib/api/helpers/integrations_helpers.rb
lib/api/helpers/integrations_helpers.rb
+1
-1
No files found.
doc/api/integrations.md
View file @
e35d77ed
...
@@ -467,6 +467,40 @@ Get Custom Issue Tracker integration settings for a project.
...
@@ -467,6 +467,40 @@ Get Custom Issue Tracker integration settings for a project.
GET /projects/:id/integrations/custom-issue-tracker
GET /projects/:id/integrations/custom-issue-tracker
```
```
## Discord
Send notifications about project events to a Discord channel.
### Create/Edit Discord integration
Set Discord integration for a project.
```
plaintext
PUT /projects/:id/integrations/discord
```
Parameters:
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`webhook`
| string | true | Discord webhook. For example,
`https://discord.com/api/webhooks/…`
|
### Delete Discord integration
Delete Discord integration for a project.
```
plaintext
DELETE /projects/:id/integrations/discord
```
### Get Discord integration settings
Get Discord integration settings for a project.
```
plaintext
GET /projects/:id/integrations/discord
```
## Drone CI
## Drone CI
Drone is a Continuous Integration platform built on Docker, written in Go
Drone is a Continuous Integration platform built on Docker, written in Go
...
...
lib/api/helpers/integrations_helpers.rb
View file @
e35d77ed
...
@@ -340,7 +340,7 @@ module API
...
@@ -340,7 +340,7 @@ module API
required:
true
,
required:
true
,
name: :webhook
,
name: :webhook
,
type:
String
,
type:
String
,
desc:
'Discord webhook.
e.g. https://discordapp
.com/api/webhooks/…'
desc:
'Discord webhook.
For example, https://discord
.com/api/webhooks/…'
}
}
],
],
'drone-ci'
=>
[
'drone-ci'
=>
[
...
...
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