Skip to content

Commit

Permalink
Skip milestone for "pr: dependency-update"
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jan 12, 2024
1 parent 705019c commit 15e833c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugins/integrationRepoPullClosed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> => {
if (
senderIsBot(payload) ||
Expand All @@ -24,6 +26,11 @@ export default async (app: App, payload: PullPayload): Promise<void> => {
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({
Expand Down

0 comments on commit 15e833c

Please sign in to comment.