replace labeler action with periodic-labeler (#1097)
* 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: https://github.com/spf13/cobra/issues/1092
This commit is contained in:
parent
f8fdd17383
commit
a7aaa7cfac
19
.github/workflows/label.yml
vendored
19
.github/workflows/label.yml
vendored
@ -1,19 +0,0 @@
|
||||
# This workflow will triage pull requests and apply a label based on the
|
||||
# paths that are modified in the pull request.
|
||||
#
|
||||
# To use this workflow, you will need to set up a .github/labeler.yml
|
||||
# file with configuration. For more information, see:
|
||||
# https://github.com/actions/labeler/blob/master/README.md
|
||||
|
||||
name: Labeler
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
label:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/labeler@v2
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
17
.github/workflows/periodic-labeler.yml
vendored
Normal file
17
.github/workflows/periodic-labeler.yml
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user