Fix syntax errors

This commit is contained in:
Michael Johnson 2017-01-24 15:28:15 -07:00
parent ee6e77c2f9
commit dfc5a94f82
2 changed files with 5 additions and 5 deletions

View File

@ -2,11 +2,11 @@ const Plugin = require('../plugin');
const Configuration = require('../configuration');
const url = require('../util/github-url');
console.log("WTF?", Configuration, Configuration.load);
console.log('WTF?', Configuration, Configuration.load);
module.exports = class Routing extends Plugin {
route(context, path) {
console.log(Configuration, Configuration.load)
console.log(Configuration, Configuration.load);
return Configuration.load(context, path).then(config => {
const parts = url(path);
context.event.payload.repository.name = parts.repo;
@ -14,4 +14,4 @@ module.exports = class Routing extends Plugin {
return config.execute(context);
});
}
}
};

View File

@ -11,11 +11,11 @@ class Robot {
receive(event) {
log.trace('webhook', event);
if(!event.payload.repository) {
if (!event.payload.repository) {
event.payload.repository = {
name: 'probot-scripts',
owner: event.payload.organization
}
};
}
installations.auth(event.payload.installation.id).then(github => {