Skip to content

Use something other than github.com/pkg/errors #711

Use something other than github.com/pkg/errors

Use something other than github.com/pkg/errors #711

name: Add 'needs-triage' label to new issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # pinned to v7.0.1
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["needs-triage :mag:"]
})