Skip to content

Instantly share code, notes, and snippets.

@BaconSoap
Created October 21, 2017 14:05
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 BaconSoap/44191120f287729129005c29d85fb9a4 to your computer and use it in GitHub Desktop.
Save BaconSoap/44191120f287729129005c29d85fb9a4 to your computer and use it in GitHub Desktop.
Webhook vs API commits
{
"id": "1a02b4f0f200cb1788de31d993727f287da39639",
"tree_id": "0aa0b6187c1298edca0a6d67b23b43e0c6f8f43c",
"distinct": true,
"message": "fix travis again",
"timestamp": "2017-09-17T16:35:36-04:00",
"url": "https://github.com/BaconSoap/branch-destroyer/commit/1a02b4f0f200cb1788de31d993727f287da39639",
"author": {
"name": "Andrew Varnerin",
"email": "andrew@varnerin.info",
"username": "BaconSoap"
},
"committer": {
"name": "Andrew Varnerin",
"email": "andrew@varnerin.info",
"username": "BaconSoap"
},
"added": [],
"removed": [],
"modified": [
".travis.yml"
]
}
{
"sha": "1a02b4f0f200cb1788de31d993727f287da39639",
"url": "https://api.github.com/repos/BaconSoap/branch-destroyer/git/commits/1a02b4f0f200cb1788de31d993727f287da39639",
"html_url": "https://github.com/BaconSoap/branch-destroyer/commit/1a02b4f0f200cb1788de31d993727f287da39639",
"author": {
"name": "Andrew Varnerin",
"email": "andrew@varnerin.info",
"date": "2017-09-17T20:35:36Z"
},
"committer": {
"name": "Andrew Varnerin",
"email": "andrew@varnerin.info",
"date": "2017-09-17T20:35:36Z"
},
"tree": {
"sha": "0aa0b6187c1298edca0a6d67b23b43e0c6f8f43c",
"url": "https://api.github.com/repos/BaconSoap/branch-destroyer/git/trees/0aa0b6187c1298edca0a6d67b23b43e0c6f8f43c"
},
"message": "fix travis again",
"parents": [
{
"sha": "62cffb83b102d0142e18a25ddbe5c713b079ee0b",
"url": "https://api.github.com/repos/BaconSoap/branch-destroyer/git/commits/62cffb83b102d0142e18a25ddbe5c713b079ee0b",
"html_url": "https://github.com/BaconSoap/branch-destroyer/commit/62cffb83b102d0142e18a25ddbe5c713b079ee0b"
}
],
"verification": {
"verified": false,
"reason": "unsigned",
"signature": null,
"payload": null
}
}
--- webhook Sat Oct 21 10:04:40 2017
+++ api Sat Oct 21 10:04:40 2017
@@ -1,13 +1,11 @@
{
- "added": [],
"author": {},
"committer": {},
- "distinct": true,
- "id": "1a02b4f0f200cb1788de31d993727f287da39639",
+ "html_url": "https://github.com/BaconSoap/branch-destroyer/commit/1a02b4f0f200cb1788de31d993727f287da39639",
"message": "fix travis again",
- "modified": [],
- "removed": [],
- "timestamp": "2017-09-17T16:35:36-04:00",
- "tree_id": "0aa0b6187c1298edca0a6d67b23b43e0c6f8f43c",
- "url": "https://github.com/BaconSoap/branch-destroyer/commit/1a02b4f0f200cb1788de31d993727f287da39639"
+ "parents": [ {} ],
+ "sha": "1a02b4f0f200cb1788de31d993727f287da39639",
+ "tree": {},
+ "url": "https://api.github.com/repos/BaconSoap/branch-destroyer/git/commits/1a02b4f0f200cb1788de31d993727f287da39639",
+ "verification": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment