Browse Source

Update PR labeler to use pull_request_target (#10695)

* Update labeler to use pull_request_target

* Add back whitespace

* Add CI label
pull/10703/head
Joel Challis 3 years ago
committed by GitHub
parent
commit
4b2da8daf4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 4 deletions
  1. +13
    -0
      .github/labeler.yml
  2. +5
    -4
      .github/workflows/labeler.yml

+ 13
- 0
.github/labeler.yml View File

@ -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/**/*

+ 5
- 4
.github/workflows/labeler.yml View File

@ -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'

Loading…
Cancel
Save