mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-01 17:24:01 +00:00
f69b4f207e
The previous version use a deprecated action. Now we use the github script action (provided by github).
24 lines
563 B
YAML
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"]
|
|
})
|