Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
551c000d
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
551c000d
编写于
5月 06, 2017
作者:
G
Gabriel Mazetto
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation for repository_update_events
上级
7045f1af
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
49 addition
and
1 deletion
+49
-1
doc/system_hooks/system_hooks.md
doc/system_hooks/system_hooks.md
+49
-1
未找到文件。
doc/system_hooks/system_hooks.md
浏览文件 @
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"
]
}
```
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录