diff --git a/.github/workflows/validate-issues.yml b/.github/workflows/validate-issues.yml new file mode 100644 index 000000000000..a45f53c001bd --- /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 }}