1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00

build: update issue triage workflow

The previous version use a deprecated action.
Now we use the github script action (provided by github).
This commit is contained in:
Eric Vantillard 2023-03-14 00:43:05 +01:00
parent da21293630
commit f69b4f207e

View File

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