diff --git a/services/bots/src/github-webhook/handlers/blocking_labels.ts b/services/bots/src/github-webhook/handlers/blocking_labels.ts index 3924c98..73b644f 100644 --- a/services/bots/src/github-webhook/handlers/blocking_labels.ts +++ b/services/bots/src/github-webhook/handlers/blocking_labels.ts @@ -15,7 +15,11 @@ export const LabelsToCheck: { }; export class BlockingLabels extends BaseWebhookHandler { - public allowedEventTypes = [EventType.PULL_REQUEST_LABELED, EventType.PULL_REQUEST_UNLABELED]; + public allowedEventTypes = [ + EventType.PULL_REQUEST_LABELED, + EventType.PULL_REQUEST_UNLABELED, + EventType.PULL_REQUEST_SYNCHRONIZE, + ]; public allowedRepositories = Object.keys(LabelsToCheck) as Repository[]; async handle(context: WebhookContext) { diff --git a/tests/services/bots/github-webhook/verify_enabled_handlers.spec.ts b/tests/services/bots/github-webhook/verify_enabled_handlers.spec.ts index d286c5e..cbed75b 100644 --- a/tests/services/bots/github-webhook/verify_enabled_handlers.spec.ts +++ b/tests/services/bots/github-webhook/verify_enabled_handlers.spec.ts @@ -104,6 +104,7 @@ describe('GithubWebhookModule', () => { { eventType: EventType.PULL_REQUEST_SYNCHRONIZE, handlers: [ + 'BlockingLabels', 'DocsMissing', 'MergeConflictChecker', 'PlatinumReview',