From 5f9c91d05a137e6db2e398fc3fabedeb9ed82b00 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 25 Apr 2025 13:19:56 -0400 Subject: [PATCH] danger: Update PR prefix pattern (#29432) This PR updates the Danger PR prefix pattern to allow underscores (`_`) and spaces (` `) in the prefix. Release Notes: - N/A --- script/danger/dangerfile.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/script/danger/dangerfile.ts b/script/danger/dangerfile.ts index a238166203..227e574823 100644 --- a/script/danger/dangerfile.ts +++ b/script/danger/dangerfile.ts @@ -2,6 +2,7 @@ import { danger, message, warn } from "danger"; const { prHygiene } = require("danger-plugin-pr-hygiene"); prHygiene({ + prefixPattern: /^([a-z\d\(\)_\s]+):(.*)/g, rules: { // Don't enable this rule just yet, as it can have false positives. useImperativeMood: "off",