Hello, World!

This commit is contained in:
Maciej Pędzich 2022-09-11 19:54:16 +02:00
parent 0378b69a1a
commit a7cd7ae762
4 changed files with 5053 additions and 0 deletions

3
app.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = (app) => {
app.onAny((context) => console.log(JSON.stringify(context, null, 2)));
};

11
functions/index.js Normal file
View File

@ -0,0 +1,11 @@
const {
createLambdaFunction,
createProbot
} = require('@probot/adapter-aws-lambda-serverless');
const appFn = require('../app');
module.exports.handler = createLambdaFunction(
appFn,
{ probot: createProbot() }
);

5016
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

23
package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "mackorone-playlist-pr-bot",
"version": "1.0.0",
"description": "GitHub bot that automatically verifies PRs with new playlist entries",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/maciejpedzich/mackorone-playlist-pr-bot.git"
},
"author": "Maciej Pędzich",
"license": "MIT",
"bugs": {
"url": "https://github.com/maciejpedzich/mackorone-playlist-pr-bot/issues"
},
"homepage": "https://github.com/maciejpedzich/mackorone-playlist-pr-bot#readme",
"dependencies": {
"@probot/adapter-aws-lambda-serverless": "^3.0.1",
"probot": "^12.2.8"
}
}