diff --git a/src/plugins/integrationRepoPullClosed.ts b/src/plugins/integrationRepoPullClosed.ts index 2fcd210..764859b 100644 --- a/src/plugins/integrationRepoPullClosed.ts +++ b/src/plugins/integrationRepoPullClosed.ts @@ -5,6 +5,8 @@ import { extractOwnerRepo } from '../utils/extractOwnerRepo' import { senderIsBot } from '../utils/filter' import { getNextMilestone } from '../utils/nextMilestone' +const SKIP_LABELS = new Set(['pr: dependency-update']) + export default async (app: App, payload: PullPayload): Promise => { if ( senderIsBot(payload) || @@ -24,6 +26,11 @@ export default async (app: App, payload: PullPayload): Promise => { return } + if (pull.labels.some((label) => SKIP_LABELS.has(label.name))) { + console.debug('Skipping due to label') + return + } + const nextMilestone = await getNextMilestone(app) if (nextMilestone) { await app.octokit.rest.issues.update({