This commit is contained in:
Brandon Keepers 2017-05-03 12:13:19 -05:00
parent 0bbd9d182c
commit cfadcb63c6
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 2 additions and 2 deletions

View File

@ -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});