From 4b2da8daf4da000ae09df083d4fd5da656cab504 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 20 Oct 2020 14:01:53 +0100 Subject: [PATCH] Update PR labeler to use pull_request_target (#10695) * Update labeler to use pull_request_target * Add back whitespace * Add CI label --- .github/labeler.yml | 13 +++++++++++++ .github/workflows/labeler.yml | 9 +++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index d74f75702..ecebf65cb 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -5,6 +5,8 @@ core: - tests/**/* - util/**/* - platforms/**/* +keyboard: +- any: ['keyboards/**/*', '!keyboards/**/keymaps/**/*'] keymap: - users/**/* - layouts/**/* @@ -17,3 +19,14 @@ python: - '**/*.py' documentation: - 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/**/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 7abbbeca3..3b99a8f43 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,13 +1,14 @@ name: "Pull Request Labeler" on: - schedule: - - cron: "*/10 * * * *" + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review, locked] jobs: triage: runs-on: ubuntu-latest steps: - - uses: fjeremic/cron-labeler@0.2.0 + - uses: actions/labeler@main with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: '.github/labeler.yml'