forked from mirrors/probot
Fix syntax errors
This commit is contained in:
parent
ee6e77c2f9
commit
dfc5a94f82
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue