Skip to content

Commit

Permalink
Merge pull request #1 from DuckyStudios/update-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
toohard2explain authored Jan 1, 2025
2 parents 329f79a + 2d1e6a6 commit 896ce22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# GH App Labels and Badges
# Autolabeler of Pull Requests

Originally forked from [sreeteja06/gh-app-labels-and-badges](https://github.com/sreeteja06/gh-app-labels-and-badges).

## Overview

Expand Down
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 896ce22

Please sign in to comment.