mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +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:
parent
da21293630
commit
f69b4f207e
22
.github/workflows/add-triage-label.yml
vendored
22
.github/workflows/add-triage-label.yml
vendored
@ -1,17 +1,23 @@
|
|||||||
|
# https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues
|
||||||
|
|
||||||
|
name: Label issues
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- reopened
|
- reopened
|
||||||
- opened
|
- opened
|
||||||
|
|
||||||
name: Add triage label
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
automate-issues-labels:
|
label_issues:
|
||||||
name: Add triage label to issue
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: initial labeling
|
- uses: actions/github-script@v6
|
||||||
uses: andymckay/labeler@1.0.4
|
|
||||||
with:
|
with:
|
||||||
add-labels: "triage"
|
script: |
|
||||||
|
github.rest.issues.addLabels({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: ["triage"]
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user