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
551c000d
Commit
551c000d
authored
May 06, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation for repository_update_events
parent
7045f1af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
1 deletion
+49
-1
doc/system_hooks/system_hooks.md
doc/system_hooks/system_hooks.md
+49
-1
No files found.
doc/system_hooks/system_hooks.md
View file @
551c000d
...
...
@@ -266,7 +266,8 @@ X-Gitlab-Event: System Hook
## Push events
Triggered when you push to the repository except when pushing tags.
Triggered when you push to the repository, except when pushing tags.
It generates one event per modified branch.
**Request header**
:
...
...
@@ -332,6 +333,7 @@ X-Gitlab-Event: System Hook
## Tag events
Triggered when you create (or delete) tags to the repository.
It generates one event per modified tag.
**Request header**
:
...
...
@@ -381,3 +383,49 @@ X-Gitlab-Event: System Hook
"total_commits_count"
:
0
}
```
## Repository Update events
Triggered only once when you push to the repository (including tags).
**Request header**
:
```
X-Gitlab-Event: System Hook
```
**Request body:**
```
json
{
"event_name"
:
"repository_update"
,
"user_id"
:
1
,
"user_name"
:
"John Smith"
,
"user_email"
:
"admin@example.com"
,
"user_avatar"
:
"https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80"
,
"project_id"
:
1
,
"project"
:
{
"name"
:
"Example"
,
"description"
:
""
,
"web_url"
:
"http://example.com/jsmith/example"
,
"avatar_url"
:
null
,
"git_ssh_url"
:
"git@example.com:jsmith/example.git"
,
"git_http_url"
:
"http://example.com/jsmith/example.git"
,
"namespace"
:
"Jsmith"
,
"visibility_level"
:
0
,
"path_with_namespace"
:
"jsmith/example"
,
"default_branch"
:
"master"
,
"homepage"
:
"http://example.com/jsmith/example"
,
"url"
:
"git@example.com:jsmith/example.git"
,
"ssh_url"
:
"git@example.com:jsmith/example.git"
,
"http_url"
:
"http://example.com/jsmith/example.git"
,
},
"changes"
:
[
{
"before"
:
"8205ea8d81ce0c6b90fbe8280d118cc9fdad6130"
,
"after"
:
"4045ea7a3df38697b3730a20fb73c8bed8a3e69e"
,
"ref"
:
"refs/heads/master"
}
],
"refs"
:[
"refs/heads/master"
]
}
```
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