Skip to content

Set labels

Set labels #10219

Workflow file for this run

# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
name: Set labels
#
# WARNING:
# ** Do NOT run untrusted code when using pull_request_target **
# pull_request_target is needed as pull_request does not provide secrets and so no
# labeling of PR is possible.
#
on:
pull_request_target:
types: [opened, edited, ready_for_review, reopened, labeled, unlabeled]
issue_comment:
types: [created, edited]
jobs:
setLabels:
name: set labels
if: |
github.repository == 'ioBroker/ioBroker.repositories'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm i
- run: npm run setLabels
env:
OWN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}