Skip to content

Commit

Permalink
Add workflow for validating issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iangmaia committed Jan 11, 2024
1 parent d1ff96e commit dd3bece
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/validate-issues.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit dd3bece

Please sign in to comment.