👷 add labeler action

This commit is contained in:
Niels Lohmann 2022-08-04 14:59:29 +02:00
parent 9e178d6207
commit c0e68645aa
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 29 additions and 15 deletions

28
.github/labeler.yml vendored
View File

@ -1,8 +1,22 @@
documentation: version: 1
- 'README.md'
- 'docs/*'
- 'docs/**/*'
ci: labels:
- '.github/workflows/*' - label: "documentation"
- '.github/external_ci/*' files: "README.md"
- label: "documentation"
files: "docs/.*"
- label: "ci"
files: "github/workflows/.*"
- label: "ci"
files: "github/external_ci/.*"
- label: "S"
size-below: 10
- label: "M"
size-above: 9
size-below: 100
- label: "L"
size-above: 100

View File

@ -1,14 +1,14 @@
name: "Pull Request Labeler" name: "Pull Request Labeler"
on: on:
- pull_request_target - pull_request
jobs: jobs:
triage: build:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/labeler@v4 - uses: srvaroa/labeler@master
with: env:
repo-token: "${{ secrets.GITHUB_TOKEN }}" GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"