From 546fe5211b162b59e012a6e3c32c39a82c23b4a1 Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Thu, 11 Jan 2024 16:42:31 +0100 Subject: [PATCH 1/3] Add workflow for validating issues --- .github/workflows/validate-issues.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/validate-issues.yml diff --git a/.github/workflows/validate-issues.yml b/.github/workflows/validate-issues.yml new file mode 100644 index 000000000..a45f53c00 --- /dev/null +++ b/.github/workflows/validate-issues.yml @@ -0,0 +1,18 @@ +name: 📝 Validate Issues + +on: + issues: + types: [opened, labeled, unlabeled] + +jobs: + check-labels-on-issues: + uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@iangmaia/gha-labels-on-issues-check + with: + label-format-list: '[ + "^\[.+\]", + "^[[:alnum:]]" + ]' + label-error-message: '🚫 Please add a type label (e.g. **[Type] Enhancement**) and a feature label (e.g. **Stats**) to this issue.' + label-success-message: 'Thanks for reporting! 👍' + secrets: + github-token: ${{ secrets.DANGERMATTIC_GITHUB_TOKEN }} From 7405bb62eac14c99649aae3a6717a4e57efb9a37 Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Fri, 19 Jan 2024 19:58:31 +0100 Subject: [PATCH 2/3] Adjust reusable workflow reference --- .github/workflows/validate-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-issues.yml b/.github/workflows/validate-issues.yml index a45f53c00..eb7b84441 100644 --- a/.github/workflows/validate-issues.yml +++ b/.github/workflows/validate-issues.yml @@ -6,7 +6,7 @@ on: jobs: check-labels-on-issues: - uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@iangmaia/gha-labels-on-issues-check + uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@trunk with: label-format-list: '[ "^\[.+\]", From 6d010cc3aa25dfad588e7eae0053be6aba4e513b Mon Sep 17 00:00:00 2001 From: Ian Maia Date: Mon, 12 Feb 2024 18:10:05 +0100 Subject: [PATCH 3/3] Use versioned shared GitHub Actions Workflow for Issues Check --- .github/workflows/validate-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-issues.yml b/.github/workflows/validate-issues.yml index eb7b84441..c9899d626 100644 --- a/.github/workflows/validate-issues.yml +++ b/.github/workflows/validate-issues.yml @@ -6,7 +6,7 @@ on: jobs: check-labels-on-issues: - uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@trunk + uses: Automattic/dangermattic/.github/workflows/reusable-check-labels-on-issues.yml@v1.0.0 with: label-format-list: '[ "^\[.+\]",