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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
6506a9dd
Commit
6506a9dd
authored
May 13, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added documentation to current Wiki Page event webhook
parent
e3311178
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
doc/web_hooks/web_hooks.md
doc/web_hooks/web_hooks.md
+54
-0
No files found.
doc/web_hooks/web_hooks.md
View file @
6506a9dd
...
...
@@ -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
\u
0026d=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
...
...
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