Skip to content

Commit 610644f

Browse files
committed
Filter out sonarcloud and fix dependabot
1 parent dad6279 commit 610644f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/handle-github-webhook.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('handleGithubWebhook - unit tests', () => {
4040
const result = await handleGithubWebhook(
4141
...makeHandleGithubWebhookParams({
4242
sender: {
43-
login: 'dependabot',
43+
login: 'dependabot[bot]',
4444
},
4545
})
4646
);

src/handle-github-webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IncomingHttpHeaders } from 'http';
33
import fetch from 'node-fetch';
44
import { getConfig } from './config';
55

6-
const SENDER_LOGIN_BLOCKLIST = ['dependabot', 'dependabot-preview'];
6+
const SENDER_LOGIN_BLOCKLIST = ['dependabot[bot]', 'dependabot-preview[bot]', 'sonarcloud[bot]'];
77

88
// see https://developer.github.com/webhooks/event-payloads/ for full github webhooks reference
99

0 commit comments

Comments
 (0)