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
This commit is contained in:
Marshall Bowers
2025-04-25 13:19:56 -04:00
committed by GitHub
parent 6692bd9f2b
commit 5f9c91d05a

View File

@@ -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",