Add dev script for testing the bot locally

This commit is contained in:
Maciej Pędzich 2022-09-13 10:04:27 +02:00
parent c196252ddf
commit 5369e80810
3 changed files with 960 additions and 8 deletions

954
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,9 @@
"version": "1.0.0",
"description": "GitHub bot that automatically verifies PRs with new playlist entries",
"scripts": {
"dev": "ts-node-dev ./run.ts --watch index.ts",
"build": "tsc",
"start": "probot run ./dist/index.js"
"start": "node ./dist/run.js"
},
"repository": {
"type": "git",
@ -17,13 +18,14 @@
},
"homepage": "https://github.com/maciejpedzich/mackorone-playlist-pr-bot#readme",
"dependencies": {
"probot": "^12.2.8",
"typescript": "^4.8.3"
"probot": "^12.2.8"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"smee-client": "^1.2.3"
"smee-client": "^1.2.3",
"ts-node-dev": "^2.0.0",
"typescript": "^4.8.3"
}
}

4
run.ts Normal file
View File

@ -0,0 +1,4 @@
import { run } from 'probot';
import bot from './bot';
run(bot);