Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
webhook payload for merge pull request Raw
{
"ref": "refs/heads/seconf",
"before": "48d241aaf9d1cc43809a58d7f3eafaae350cded8",
"after": "c02096e44d3538d8b4b12da12217225d90e969f4",
"compare_url": "https://try.gogs.io/sjrt/test_merge_webhook2/compare/48d241aaf9d1cc43809a58d7f3eafaae350cded8...c02096e44d3538d8b4b12da12217225d90e969f4",
"commits": [
{
"id": "df35735412f9603256fffa04537c22231e9a1bc9",
"message": "Merge branch 'master' of sjrt/test_merge_webhook2 into seconf\n",
"url": "https://try.gogs.io/sjrt/test_merge_webhook2/commit/df35735412f9603256fffa04537c22231e9a1bc9",
"author": {
"name": "sjrt",
"email": "sjrt@b.reed.to",
"username": "sjrt"
},
"committer": {
"name": "Gogs",
"email": "gogs@fake.local",
"username": ""
},
"added": [],
"removed": [],
"modified": [],
"timestamp": "2017-04-21T08:18:31Z"
},
{
"id": "c02096e44d3538d8b4b12da12217225d90e969f4",
"message": "file2\n",
"url": "https://try.gogs.io/sjrt/test_merge_webhook2/commit/c02096e44d3538d8b4b12da12217225d90e969f4",
"author": {
"name": "user",
"email": "email",
"username": ""
},
"committer": {
"name": "Akademic",
"email": "",
"username": ""
},
"added": [],
"removed": [],
"modified": [
"file2"
],
"timestamp": "2017-04-21T08:15:07Z"
},
{
"id": "4bf8bad18b4186c9d47a18b821458c7a3e71f1f7",
"message": "file2\n",
"url": "https://try.gogs.io/sjrt/test_merge_webhook2/commit/4bf8bad18b4186c9d47a18b821458c7a3e71f1f7",
"author": {
"name": "user",
"email": "email",
"username": ""
},
"committer": {
"name": "Akademic",
"email": "",
"username": ""
},
"added": [
"file2"
],
"removed": [],
"modified": [],
"timestamp": "2017-04-21T08:14:56Z"
}
],
"repository": {
"id": 9193,
"owner": {
"id": 11749,
"login": "sjrt",
"full_name": "",
"email": "sjrt@b.reed.to",
"avatar_url": "https://secure.gravatar.com/avatar/3185af1959dc1a678e2c2ac04a66c9f7",
"username": "sjrt"
},
"name": "test_merge_webhook2",
"full_name": "sjrt/test_merge_webhook2",
"description": "",
"private": false,
"fork": false,
"mirror": false,
"html_url": "https://try.gogs.io/sjrt/test_merge_webhook2",
"ssh_url": "git@try.gogs.io:sjrt/test_merge_webhook2.git",
"clone_url": "https://try.gogs.io/sjrt/test_merge_webhook2.git",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 1,
"open_issues_count": 0,
"default_branch": "master",
"created_at": "2017-04-21T08:16:21Z",
"updated_at": "2017-04-21T08:16:32Z"
},
"pusher": {
"id": 11749,
"login": "sjrt",
"full_name": "",
"email": "sjrt@b.reed.to",
"avatar_url": "https://secure.gravatar.com/avatar/3185af1959dc1a678e2c2ac04a66c9f7",
"username": "sjrt"
},
"sender": {
"id": 11749,
"login": "sjrt",
"full_name": "",
"email": "sjrt@b.reed.to",
"avatar_url": "https://secure.gravatar.com/avatar/3185af1959dc1a678e2c2ac04a66c9f7",
"username": "sjrt"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment