1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-20 18:09:15 +00:00
plantuml/.github/workflows/add-triage-label.yml
Eric Vantillard f69b4f207e build: update issue triage workflow
The previous version use a deprecated action.
Now we use the github script action (provided by github).
2023-03-14 00:43:05 +01:00

24 lines
563 B
YAML

# https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues
name: Label issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["triage"]
})