Enable debug mode for GitHub Client

This commit is contained in:
Seema Kamath 2016-10-12 13:15:45 -07:00
parent 3ba3bdc398
commit 3a5b497101
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ const Dispatcher = require('./lib/dispatcher');
const PORT = process.env.PORT || 3000;
const webhook = createHandler({path: '/', secret: process.env.WEBHOOK_SECRET || 'development'});
const github = new GitHubApi();
const github = new GitHubApi({
debug: true
});
github.authenticate({
type: 'oauth',
token: process.env.GITHUB_TOKEN