BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d29781be
Commit
d29781be
authored
Apr 18, 2017
by
TM Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#29801] Add "Slack Slash Commands" to API docs
- Reorder slash command api requests, include slack response example - Case fix and added changelog
parent
1005389f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
11 deletions
+73
-11
29801-add-slash-slack-commands-to-api-doc.yml
.../unreleased/29801-add-slash-slack-commands-to-api-doc.yml
+5
-0
services.md
doc/api/services.md
+68
-11
No files found.
changelogs/unreleased/29801-add-slash-slack-commands-to-api-doc.yml
0 → 100644
View file @
d29781be
---
title
:
Add Slack slash command api to services documentation and rearrange order and
cases
merge_request
:
10757
author
:
TM Lee
doc/api/services.md
View file @
d29781be
...
...
@@ -490,41 +490,98 @@ Remove all previously JIRA settings from a project.
DELETE /projects/:id/services/jira
```
##
Mattermost Slash C
ommands
##
Slack slash c
ommands
Ability to receive slash commands from a
Mattermost
chat instance.
Ability to receive slash commands from a
Slack
chat instance.
###
Create/Edit Mattermost Slash Command service
###
Get Slack slash command service settings
Set Mattermost Slash Command
for a project.
Get Slack slash command service settings
for a project.
```
PUT /projects/:id/services/mattermost-slash-commands
GET /projects/:id/services/slack-slash-commands
```
Example response:
```
json
{
"id"
:
4
,
"title"
:
"Slack slash commands"
,
"created_at"
:
"2017-06-27T05:51:39-07:00"
,
"updated_at"
:
"2017-06-27T05:51:39-07:00"
,
"active"
:
true
,
"push_events"
:
true
,
"issues_events"
:
true
,
"merge_requests_events"
:
true
,
"tag_push_events"
:
true
,
"note_events"
:
true
,
"build_events"
:
true
,
"pipeline_events"
:
true
,
"properties"
:
{
"token"
:
"9koXpg98eAheJpvBs5tK"
}
}
```
### Create/Edit Slack slash command service
Set Slack slash command for a project.
```
PUT /projects/:id/services/slack-slash-commands
```
Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`token`
| string | yes | The
Mattermost
token |
|
`token`
| string | yes | The
Slack
token |
### Delete
Mattermost Slash C
ommand service
### Delete
Slack slash c
ommand service
Delete
Mattermost Slash C
ommand service for a project.
Delete
Slack slash c
ommand service for a project.
```
DELETE /projects/:id/services/
mattermost
-slash-commands
DELETE /projects/:id/services/
slack
-slash-commands
```
### Get Mattermost Slash Command service settings
## Mattermost slash commands
Ability to receive slash commands from a Mattermost chat instance.
### Get Mattermost slash command service settings
Get Mattermost
Slash C
ommand service settings for a project.
Get Mattermost
slash c
ommand service settings for a project.
```
GET /projects/:id/services/mattermost-slash-commands
```
### Create/Edit Mattermost slash command service
Set Mattermost slash command for a project.
```
PUT /projects/:id/services/mattermost-slash-commands
```
Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`token`
| string | yes | The Mattermost token |
### Delete Mattermost slash command service
Delete Mattermost slash command service for a project.
```
DELETE /projects/:id/services/mattermost-slash-commands
```
## Pipeline-Emails
Get emails for GitLab CI pipelines.
...
...
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