Added documentation to current Wiki Page event webhook
This commit is contained in:
parent
e3311178a3
commit
6506a9dd44
1 changed files with 54 additions and 0 deletions
|
@ -695,6 +695,60 @@ X-Gitlab-Event: Merge Request Hook
|
|||
}
|
||||
```
|
||||
|
||||
## Wiki Page events
|
||||
|
||||
Triggered when a wiki page is created or edited.
|
||||
|
||||
**Request Header**:
|
||||
|
||||
```
|
||||
X-Gitlab-Event: Wiki Page Hook
|
||||
```
|
||||
|
||||
**Request Body**:
|
||||
|
||||
```json
|
||||
{
|
||||
"object_kind": "wiki_page",
|
||||
"user": {
|
||||
"name": "Administrator",
|
||||
"username": "root",
|
||||
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon"
|
||||
},
|
||||
"project": {
|
||||
"name": "awesome-project",
|
||||
"description": "This is awesome",
|
||||
"web_url": "http://example.com/root/awesome-project",
|
||||
"avatar_url": null,
|
||||
"git_ssh_url": "git@example.com:root/test-project.git",
|
||||
"git_http_url": "http://example.com/root/awesome-project.git",
|
||||
"namespace": "root",
|
||||
"visibility_level": 0,
|
||||
"path_with_namespace": "root/awesome-project",
|
||||
"default_branch": "master",
|
||||
"homepage": "http://example.com/root/awesome-project",
|
||||
"url": "git@example.com:root/awesome-project.git",
|
||||
"ssh_url": "git@example.com:root/awesome-project.git",
|
||||
"http_url": "http://example.com/root/awesome-project.git"
|
||||
},
|
||||
"object_attributes": {
|
||||
"title": "Awesome",
|
||||
"content": "awesome content goes here",
|
||||
"format": "markdown",
|
||||
"message": "adding an awesome page to the wiki",
|
||||
"slug": "awesome",
|
||||
"url": "http://example.com/root/awesome-project/wikis/awesome",
|
||||
"action": "create"
|
||||
},
|
||||
"repository": {
|
||||
"name": "awesome-project",
|
||||
"url": "git@example.com:root/awesome-project.git",
|
||||
"description": "test",
|
||||
"homepage": "http://example.com/root/awesome-project"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### Example webhook receiver
|
||||
|
||||
If you want to see GitLab's webhooks in action for testing purposes you can use
|
||||
|
|
Loading…
Reference in a new issue