Last active
August 29, 2015 14:19
-
-
Save nils-werner/baf6bc3be70ee793d380 to your computer and use it in GitHub Desktop.
GitLab webhook request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{'connection': 'close', | |
'content-length': '1598', | |
'content-type': 'application/json', | |
'host': 'mymac.employer.server.de:8000'} | |
{ | |
"before": "781f005120f77fbc69d1077d57b3b10ee792f232", | |
"after": "0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"ref": "refs/heads/master", | |
"checkout_sha": "0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"user_id": 3, | |
"user_name": "Firstname Lastname", | |
"project_id": 236, | |
"repository": { | |
"name": "Repo", | |
"url": "[email protected]:user/repo.git", | |
"description": "", | |
"homepage": "http://git.employer.server.de:8088/user/repo", | |
"git_http_url": "http://git.employer.server.de:8088/user/repo.git", | |
"git_ssh_url": "[email protected]:user/repo.git", | |
"visibility_level": 10 | |
}, | |
"commits": [ | |
{ | |
"id": "0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"message": "import spelling mistake in doc\\n", | |
"timestamp": "2015-02-08T21:46:26+01:00", | |
"url": "http://git.employer.server.de:8088/user/repo/commit/0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
}, | |
{ | |
"id": "2945db907ab6c74fe1b6399538059674616f59d7", | |
"message": "Tag deployments as dev releases\\n", | |
"timestamp": "2015-01-27T10:40:36+01:00", | |
"url": "http://git.employer.server.de:8088/user/repo/commit/2945db907ab6c74fe1b6399538059674616f59d7", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
}, | |
{ | |
"id": "781f005120f77fbc69d1077d57b3b10ee792f232", | |
"message": "use rfft for real inputs\\n", | |
"timestamp": "2014-12-17T14:57:56+01:00", | |
"url": "http://git.employer.server.de:8088/user/repo/commit/781f005120f77fbc69d1077d57b3b10ee792f232", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
} | |
], | |
"total_commits_count": 3 | |
} | |
{'connection': 'close', | |
'content-length': '1598', | |
'content-type': 'application/json', | |
'host': 'mymac.employer.server.de:8000'} | |
{ | |
"before": "781f005120f77fbc69d1077d57b3b10ee792f232", | |
"after": "0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"ref": "refs/heads/master", | |
"checkout_sha": "0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"user_id": 3, | |
"user_name": "Firstname Lastname", | |
"project_id": 236, | |
"repository": { | |
"name": "Repo", | |
"url": "[email protected]:user/repo.git", | |
"description": "", | |
"homepage": "http://git.employer.server.de:8088/user/repo", | |
"git_http_url": "http://git.employer.server.de:8088/user/repo.git", | |
"git_ssh_url": "[email protected]:user/repo.git", | |
"visibility_level": 10 | |
}, | |
"commits": [ | |
{ | |
"id": "0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"message": "import spelling mistake in doc\\n", | |
"timestamp": "2015-02-08T21:46:26+01:00", | |
"url": "http://git.employer.server.de:8088/user/repo/commit/0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
}, | |
{ | |
"id": "2945db907ab6c74fe1b6399538059674616f59d7", | |
"message": "Tag deployments as dev releases\\n", | |
"timestamp": "2015-01-27T10:40:36+01:00", | |
"url": "http://git.employer.server.de:8088/user/repo/commit/2945db907ab6c74fe1b6399538059674616f59d7", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
}, | |
{ | |
"id": "781f005120f77fbc69d1077d57b3b10ee792f232", | |
"message": "use rfft for real inputs\\n", | |
"timestamp": "2014-12-17T14:57:56+01:00", | |
"url": "http://git.employer.server.de:8088/user/repo/commit/781f005120f77fbc69d1077d57b3b10ee792f232", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
} | |
], | |
"total_commits_count": 3 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user@mymac project (master)]$ python test.py | |
{'connection': 'close', | |
'content-length': '1625', | |
'content-type': 'application/json', | |
'host': 'mymac.employer.webserver.de:8000'} | |
## the following was passed through http://jsonlint.com/ | |
{ | |
"object_kind": "push", | |
"before": "1c90835a40c60212ed0cc068d46df278d89d6033", | |
"after": "6c43134cb9a29415ec0118a3db9ae828e5c2746a", | |
"ref": "refs/heads/master", | |
"checkout_sha": "6c43134cb9a29415ec0118a3db9ae828e5c2746a", | |
"user_id": 3, | |
"user_name": "Firstname Lastname", | |
"user_email": "[email protected]", | |
"project_id": 164, | |
"repository": { | |
"name": "project", | |
"url": "[email protected]:user/project.git", | |
"description": "", | |
"homepage": "https://git.employer.webserver.de/user/project", | |
"git_http_url": "https://git.employer.webserver.de/user/project.git", | |
"git_ssh_url": "[email protected]:user/project.git", | |
"visibility_level": 0 | |
}, | |
"commits": [ | |
{ | |
"id": "6c43134cb9a29415ec0118a3db9ae828e5c2746a", | |
"message": "Print installed packages environment\\n", | |
"timestamp": "2015-04-13T12:23:48+02:00", | |
"url": "https://git.employer.webserver.de/user/project/commit/6c43134cb9a29415ec0118a3db9ae828e5c2746a", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
}, | |
{ | |
"id": "668a4b42247bbd1403d48501317bbb49addd6a77", | |
"message": "Ship a few tests for plugins\\n", | |
"timestamp": "2015-04-07T15:29:20+02:00", | |
"url": "https://git.employer.webserver.de/user/project/commit/668a4b42247bbd1403d48501317bbb49addd6a77", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
}, | |
{ | |
"id": "1c90835a40c60212ed0cc068d46df278d89d6033", | |
"message": "Documented tempfile param suffix\\n", | |
"timestamp": "2015-04-07T14:52:30+02:00", | |
"url": "https://git.employer.webserver.de/user/project/commit/1c90835a40c60212ed0cc068d46df278d89d6033", | |
"author": { | |
"name": "Firstname Lastname", | |
"email": "[email protected]" | |
} | |
} | |
], | |
"total_commits_count": 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment