Skip to content

Instantly share code, notes, and snippets.

@madr
Created May 7, 2014 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madr/aab7ef174eec894d5c34 to your computer and use it in GitHub Desktop.
Save madr/aab7ef174eec894d5c34 to your computer and use it in GitHub Desktop.
example github webhook post
{
"ref": "refs/heads/master",
"after": "7d97f223924e0c7440680892cefdb2d97ff662a3",
"before": "ae249ec5c919d54f76c700178061652ed65286de",
"created": false,
"deleted": false,
"forced": false,
"compare": "https://github.com/madr/bearded-sansa/compare/ae249ec5c919...7d97f223924e",
"commits": [
{
"id": "7d97f223924e0c7440680892cefdb2d97ff662a3",
"distinct": true,
"message": "print to log",
"timestamp": "2014-05-07T13:14:43+02:00",
"url": "https://github.com/madr/bearded-sansa/commit/7d97f223924e0c7440680892cefdb2d97ff662a3",
"author": {
"name": "Anders Ytterström",
"email": "yttan@fastmail.se",
"username": "madr"
},
"committer": {
"name": "Anders Ytterström",
"email": "yttan@fastmail.se",
"username": "madr"
},
"added": [
],
"removed": [
],
"modified": [
"app.rb"
]
}
],
"head_commit": {
"id": "7d97f223924e0c7440680892cefdb2d97ff662a3",
"distinct": true,
"message": "print to log",
"timestamp": "2014-05-07T13:14:43+02:00",
"url": "https://github.com/madr/bearded-sansa/commit/7d97f223924e0c7440680892cefdb2d97ff662a3",
"author": {
"name": "Anders Ytterström",
"email": "yttan@fastmail.se",
"username": "madr"
},
"committer": {
"name": "Anders Ytterström",
"email": "yttan@fastmail.se",
"username": "madr"
},
"added": [
],
"removed": [
],
"modified": [
"app.rb"
]
},
"repository": {
"id": 19530792,
"name": "bearded-sansa",
"url": "https://github.com/madr/bearded-sansa",
"description": "Webhook to automate releases and deploys using FTP, e.g. for Wordpress",
"watchers": 0,
"stargazers": 0,
"forks": 0,
"fork": false,
"size": 0,
"owner": {
"name": "madr",
"email": "yttan@fastmail.se"
},
"private": false,
"open_issues": 0,
"has_issues": true,
"has_downloads": true,
"has_wiki": true,
"language": "Ruby",
"created_at": 1399459527,
"pushed_at": 1399461307,
"master_branch": "master"
},
"pusher": {
"name": "madr",
"email": "yttan@fastmail.se"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment