From 5e01485462e4bb66841e2846d84414012ee8b997 Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Thu, 22 Feb 2024 16:15:48 +0100 Subject: [PATCH 1/2] Fix issue validation Regex --- .github/workflows/validate-issues.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-issues.yml b/.github/workflows/validate-issues.yml index 9a8cd5330d6..3d3c71ce816 100644 --- a/.github/workflows/validate-issues.yml +++ b/.github/workflows/validate-issues.yml @@ -9,8 +9,8 @@ jobs: uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@v1.0.0 with: label-format-list: '[ - "^type: *$", - "^feature: *$" + "^type: ", + "^feature: " ]' label-error-message: '🚫 Please add a type label (e.g. **type: enhancement**) and a feature label (e.g. **feature: stats**) to this issue.' label-success-message: 'Thanks for reporting! 👍' From 3e051e2799196ddfaef3ac75676bbb45cedd1de1 Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Thu, 22 Feb 2024 18:11:11 +0100 Subject: [PATCH 2/2] Improve matching requesting at least a character after the label type --- .github/workflows/validate-issues.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-issues.yml b/.github/workflows/validate-issues.yml index 3d3c71ce816..f32e364b7eb 100644 --- a/.github/workflows/validate-issues.yml +++ b/.github/workflows/validate-issues.yml @@ -9,8 +9,8 @@ jobs: uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@v1.0.0 with: label-format-list: '[ - "^type: ", - "^feature: " + "^type: .+", + "^feature: .+" ]' label-error-message: '🚫 Please add a type label (e.g. **type: enhancement**) and a feature label (e.g. **feature: stats**) to this issue.' label-success-message: 'Thanks for reporting! 👍'