forked from mirrors/probot
Tweaks
This commit is contained in:
parent
0bbd9d182c
commit
cfadcb63c6
|
@ -11,7 +11,7 @@ const payloadPath = process.argv[3];
|
|||
const pluginPath = process.argv[4];
|
||||
|
||||
if(!eventName || !payloadPath) {
|
||||
console.log("Usage: script/simulate event-name path/to/payload.json");
|
||||
console.log('Usage: bin/probot-simulate event-name path/to/payload.json');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
@ -30,5 +30,5 @@ const probot = createProbot({
|
|||
const plugins = require('../lib/plugin')(probot);
|
||||
plugins.load([pluginPath]);
|
||||
|
||||
console.log("Simulating event", eventName);
|
||||
probot.robot.log('Simulating event', eventName);
|
||||
probot.robot.webhook.emit(eventName, {event: eventName, payload});
|
||||
|
|
Loading…
Reference in New Issue