mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
33 lines
821 B
YAML
33 lines
821 B
YAML
name: Triage new issues
|
|
|
|
on:
|
|
issues:
|
|
types: [opened]
|
|
|
|
permissions:
|
|
issues: write
|
|
|
|
env:
|
|
DO_NOT_TRACK: "1"
|
|
KTX_TELEMETRY_DISABLED: "1"
|
|
NEXT_TELEMETRY_DISABLED: "1"
|
|
|
|
jobs:
|
|
label-external:
|
|
name: Add needs-triage to external issues
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.event.issue.author_association != 'OWNER' &&
|
|
github.event.issue.author_association != 'MEMBER' &&
|
|
github.event.issue.author_association != 'COLLABORATOR'
|
|
steps:
|
|
- name: Apply needs-triage label
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
await github.rest.issues.addLabels({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
labels: ['needs-triage'],
|
|
});
|