Skip to content

Commit

Permalink
fix: ignore private repositories (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Aug 17, 2023
1 parent 2bfb0f8 commit 665fb7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion github-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ export default async function githubApp(env, app) {
});

app.webhooks.on('issues.labeled', async (context) => {
const { name } = context.payload.label;
// ignore private repositories
if (context.payload.repository.private) return;

// ignore if label is not "good first issue"
const { name } = context.payload.label;
if (!GOOD_FIRST_REGEX.test(name)) return;

// send message to discord
Expand Down

0 comments on commit 665fb7f

Please sign in to comment.