Skip to content

Commit

Permalink
replace labeler action with periodic-labeler (#1097)
Browse files Browse the repository at this point in the history
* replace labeler action with periodic-labeler

this replaces the default labeler as it
does not label PRs from forks properly.

with periodic-labeler it should apply labels on
a cron to any PR and resolve the below bug:

#1092
  • Loading branch information
xchapter7x authored May 8, 2020
1 parent f8fdd17 commit a7aaa7c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/label.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/periodic-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Pull request labeler
on:
schedule:
- cron: '*/5 * * * *'
jobs:
labeler:
runs-on: ubuntu-latest
steps:
# if we are to change the labeler version from v0.0.2
# we must review the code for that version
# to make sure there are no leaks or exploits
- uses: paulfantom/periodic-labeler@v0.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
LABEL_MAPPINGS_FILE: .github/labeler.yml

0 comments on commit a7aaa7c

Please sign in to comment.