Skip to content

Instantly share code, notes, and snippets.

@bhurlow
Created February 13, 2014 22:59
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 bhurlow/8985709 to your computer and use it in GitHub Desktop.
Save bhurlow/8985709 to your computer and use it in GitHub Desktop.
example webhook
{ ref: 'refs/heads/deploy',
after: '9e597618cb9102c993b3245f4e7c0843131ce335',
before: '85a5d3681c47658c4e0a667472a17a754c22055d',
created: false,
deleted: false,
forced: false,
compare: 'https://github.com/XXXXXX/XXXXXX/compare/85a5d3681c47...9e597618cb91',
commits:
[ { id: '9e597618cb9102c993b3245f4e7c0843131ce335',
distinct: true,
message: 'test hook',
timestamp: '2014-02-13T14:57:33-08:00',
url: 'https://github.com/XXXX/XXXXX/commit/9e597618cb9102c993b3245f4e7c0843131ce335',
author: [Object],
committer: [Object],
added: [],
removed: [],
modified: [Object] } ],
head_commit:
{ id: '9e597618cb9102c993b3245f4e7c0843131ce335',
distinct: true,
message: 'test hook',
timestamp: '2014-02-13T14:57:33-08:00',
url: 'https://github.com/AfterNextCom/if-receiver/commit/9e597618cb9102c993b3245f4e7c0843131ce335',
author: { name: 'XXXX', email: 'XXXXXX' },
committer: { name: 'XXXX', email: 'XXXXXX' },
added: [],
removed: [],
modified: [ 'app.js' ] },
repository:
{ id: 15622705,
name: 'XXXX',
url: 'XXXXX',
description: 'real. time.',
watchers: 0,
stargazers: 0,
forks: 0,
fork: false,
size: 164,
owner: { name: 'XXXXXX', email: null },
private: true,
open_issues: 10,
has_issues: true,
has_downloads: true,
has_wiki: true,
language: 'JavaScript',
created_at: 1388793447,
pushed_at: 1392332266,
master_branch: 'master',
organization: 'AfterNextCom' },
pusher: { name: 'XXXX', email: 'XXXXXX' } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment