Update PR labeler to use pull_request_target (#10695)

* Update labeler to use pull_request_target

* Add back whitespace

* Add CI label
This commit is contained in:
Joel Challis 2020-10-20 14:01:53 +01:00 committed by GitHub
parent c3ce06c2e7
commit 4b2da8daf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 4 deletions

13
.github/labeler.yml vendored
View File

@ -5,6 +5,8 @@ core:
- tests/**/* - tests/**/*
- util/**/* - util/**/*
- platforms/**/* - platforms/**/*
keyboard:
- any: ['keyboards/**/*', '!keyboards/**/keymaps/**/*']
keymap: keymap:
- users/**/* - users/**/*
- layouts/**/* - layouts/**/*
@ -17,3 +19,14 @@ python:
- '**/*.py' - '**/*.py'
documentation: documentation:
- docs/**/* - docs/**/*
translation:
- docs/fr-fr/**/*
- docs/es/**/*
- docs/ja/**/*
- docs/he-il/**/*
- docs/pt-br/**/*
- docs/zh-cn/**/*
- docs/de/**/*
- docs/ru-ru/**/*
CI:
- .github/**/*

View File

@ -1,13 +1,14 @@
name: "Pull Request Labeler" name: "Pull Request Labeler"
on: on:
schedule: pull_request_target:
- cron: "*/10 * * * *" types: [opened, synchronize, reopened, ready_for_review, locked]
jobs: jobs:
triage: triage:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: fjeremic/cron-labeler@0.2.0 - uses: actions/labeler@main
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: '.github/labeler.yml'