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:
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:
|
||||
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"]
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user