UNPKG

@probot/adapter-aws-lambda-serverless

Version:
19 lines (16 loc) 439 B
module.exports = app; const { relative } = require("path"); /** * @param {import('probot').Probot} app */ async function app(app) { app.on("push", async (context) => { await context.octokit.request( "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments", context.repo({ commit_sha: context.payload.head_commit.id, body: `Hello from ${relative(process.cwd(), __filename)}`, }) ); }); }