2023-03-13 23:43:05 +00:00
|
|
|
# https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues
|
|
|
|
|
|
|
|
name: Label issues
|
2023-03-13 16:48:22 +00:00
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types:
|
|
|
|
- reopened
|
|
|
|
- opened
|
|
|
|
jobs:
|
2023-03-13 23:43:05 +00:00
|
|
|
label_issues:
|
2023-03-13 16:48:22 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-03-13 23:43:05 +00:00
|
|
|
permissions:
|
|
|
|
issues: write
|
2023-03-13 16:48:22 +00:00
|
|
|
steps:
|
2023-11-14 02:04:54 +00:00
|
|
|
- uses: actions/github-script@v7
|
2023-03-13 16:48:22 +00:00
|
|
|
with:
|
2023-03-13 23:43:05 +00:00
|
|
|
script: |
|
|
|
|
github.rest.issues.addLabels({
|
|
|
|
issue_number: context.issue.number,
|
|
|
|
owner: context.repo.owner,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
labels: ["triage"]
|
|
|
|
})
|