Skip to content

Commit

Permalink
feat: More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
toohard2explain committed Jun 12, 2024
1 parent e90ac37 commit 2d1e6a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,31 @@ const pullRequestHandler = async (context: any, skipChangeNotes: boolean) => {
export = (app: Probot) => {
app.on("pull_request.opened", async (context) => {
context.log.info("pull_request.opened");
console.log("pull_request.opened");
await pullRequestHandler(context, false);
});

app.on("pull_request.edited", async (context) => {
context.log.info("pull_request.edited");
console.log("pull_request.edited");
await pullRequestHandler(context, true);
});

app.on("pull_request.reopened", async (context) => {
context.log.info("pull_request.reopened");
console.log("pull_request.reopened");
await pullRequestHandler(context, true);
});

app.on("pull_request.synchronize", async (context) => {
context.log.info("pull_request.synchronize");
console.log("pull_request.synchronize");
await pullRequestHandler(context, false);
});

app.on("pull_request_review.submitted", async (context) => {
context.log.info("pull_request_review.submitted");
console.log("pull_request_review.submitted");
const { existingLabels } = await preHook(context);
await assignReviewLabels(context, existingLabels);
});
Expand Down

0 comments on commit 2d1e6a6

Please sign in to comment.