rsnext/.github/workflows/triage.yml
Steven Luscher eb3806e0b1
Allow StackBlitz repro links in bug reports on GitHub (#64935)
### What?

This change will prevent GitHub actions from auto-closing bug reports
that supply a StackBlitz repro link.

### Why?

I was sad that my carefully crafted repro was rejected when GitHub
actions summarily closed https://github.com/vercel/next.js/issues/64933

### How?

Allowlist it.

Fixes #64934
2024-04-23 12:58:44 -07:00

39 lines
1.4 KiB
YAML

name: Triage issues
on:
issues:
types: [opened, labeled]
issue_comment:
types: [created]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
issues: write
jobs:
triage:
name: Nissuer
runs-on: ubuntu-latest
steps:
- uses: balazsorban44/nissuer@1.10.0
with:
label-area-prefix: ''
label-area-match: 'name'
label-area-section: 'Which area\(s\) are affected\? \(Select all that apply\)(.*)### Additional context'
label-comments: |
{
"good first issue": ".github/comments/good-first-issue.md",
"please add a complete reproduction": ".github/comments/invalid-reproduction.md",
"please simplify reproduction": ".github/comments/simplify-reproduction.md",
"please verify canary": ".github/comments/verify-canary.md",
"resolved": ".github/comments/resolved.md"
}
reproduction-comment: '.github/comments/invalid-link.md'
reproduction-hosts: 'github.com,codesandbox.io,stackblitz.com'
reproduction-blocklist: 'github.com/vercel/next.js.*,github.com/\\w*/?$,github.com$'
reproduction-link-section: '### Link to the code that reproduces this issue(.*)### To Reproduce'
reproduction-invalid-label: 'invalid link'
reproduction-issue-labels: 'bug,'
comment-unhelpful-weight: 0.5