Adapt the bot to run via Netlify Functions

This commit is contained in:
2023-07-06 11:01:01 +02:00
parent 8a086eeb26
commit ec9d612eaa
6 changed files with 140 additions and 179 deletions

View File

@@ -3,9 +3,8 @@
"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": "node ./dist/run.js"
"dev": "netlify dev",
"build": "tsc"
},
"repository": {
"type": "git",
@@ -18,6 +17,7 @@
},
"homepage": "https://github.com/maciejpedzich/mackorone-playlist-pr-bot#readme",
"dependencies": {
"@probot/adapter-aws-lambda-serverless": "^3.0.3",
"metadata-scraper": "^0.2.60",
"probot": "^12.2.8"
},