mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
29 lines
731 B
YAML
29 lines
731 B
YAML
name: chore
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
jobs:
|
|
add-issue-labels:
|
|
name: Add labels
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'nuxt/nuxt'
|
|
steps:
|
|
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
|
with:
|
|
script: |
|
|
// add 'pending triage' label if issue is created with no labels
|
|
if (context.payload.issue.labels.length === 0) {
|
|
github.rest.issues.addLabels({
|
|
issue_number: context.payload.issue.number,
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
labels: ['pending triage']
|
|
})
|
|
}
|