Skip to content

Commit

Permalink
Update PR labeler to use pull_request_target (qmk#10695)
Browse files Browse the repository at this point in the history
* Update labeler to use pull_request_target

* Add back whitespace

* Add CI label
  • Loading branch information
zvecr authored Oct 20, 2020
1 parent 3b88829 commit a61c145
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ core:
- tests/**/*
- util/**/*
- platforms/**/*
keyboard:
- any: ['keyboards/**/*', '!keyboards/**/keymaps/**/*']
keymap:
- users/**/*
- layouts/**/*
Expand All @@ -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/**/*
9 changes: 5 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit a61c145

Please sign in to comment.