hubot-archive / hubot-github-repo-event-notifier

Notifies about any GitHub repo event available via webhook.
https://www.npmjs.org/package/hubot-github-repo-event-notifier
57 stars 42 forks source link

More debug info w/ robot.logger.debug #33

Closed msabramo closed 9 years ago

msabramo commented 9 years ago

Especially useful is to print the data in the body of the request, which is useful when developing more event handlers.

E.g.:

[Sun Nov 08 2015 10:40:24 GMT-0800 (PST)] DEBUG github-repo-event-notifier: Received POST to /hubot/gh-repo-events with data = { id: 806104,
  sha: '8e8798835ef293ddfcc9859663c75b244db3d908',
  name: 'devmonkeys/smstack',
  target_url: 'https://teamcity.corp.surveymonkey.com/viewLog.html?buildId=615275&buildTypeId=Smstack_Branches_Docs',
  context: 'teamcity/docs',
  description: 'Finished TeamCity Build smstack :: branches :: docs : Running; Warnings: 0',
  state: 'success',
...
     type: 'User',
     site_admin: false } }
[Sun Nov 08 2015 10:40:24 GMT-0800 (PST)] DEBUG github-repo-event-notifier: Processing event type: "status"...
patcon commented 9 years ago

Looks good to me! Thanks!

patcon commented 9 years ago

Released in v1.6.0