diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2020-01-09 09:04:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 09:04:04 -0500 |
commit | 652de65bdcd7c327882270ffb40fdf1d0276a17a (patch) | |
tree | 248afa8e90b11df0174603d5d4038433c974bd68 /.github | |
parent | 0fba85e2c20add69546cefbf37bb2033d2d1e052 (diff) |
Update PR labeling to not depend on fork owner access. (#7699)
This updates the PR labeling via GHA to not depend on the access level
of the owner of the PR relative to the repository, which should finally
make it work correctly.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/labeler.yml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 3a68bd23a5..130d438550 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -2,16 +2,14 @@ # Handles labelling of PR's. name: Pull Request Labeler on: - pull_request: - types: - - opened - - synchronized - - reopened - - ready_for_review + schedule: + - cron: '*/5 * * * *' jobs: labeler: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.NETDATABOT_TOKEN }}" + - uses: paulfantom/periodic-labeler@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + LABEL_MAPPINGS_FILE: .github/labeler.yml |