mirror of
https://github.com/spf13/cobra
synced 2025-05-07 22:07:23 +00:00
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
14 lines
347 B
YAML
14 lines
347 B
YAML
---
|
|
name: Pull request labeler
|
|
on:
|
|
schedule:
|
|
- cron: '*/5 * * * *'
|
|
jobs:
|
|
labeler:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: paulfantom/periodic-labeler@v0.0.2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
LABEL_MAPPINGS_FILE: .github/labeler.yml
|