We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1555cec commit 3894e77Copy full SHA for 3894e77
backend/src/controllers/webhook.controller.ts
@@ -8,6 +8,11 @@ import { Endpoints } from '@octokit/types';
8
export const setupWebhookListeners = (github: App) => {
9
github.webhooks.on(["pull_request.opened"], async ({ octokit, payload }) => {
10
try {
11
+ if (payload.pull_request.user.type === 'Bot') {
12
+ logger.debug(`Ignoring PR from bot user: ${payload.pull_request.user.login}`);
13
+ return;
14
+ }
15
+
16
const survey = await surveyService.createSurvey({
17
status: 'pending',
18
hits: 0,
0 commit comments