👷 add labeler action
This commit is contained in:
parent
9e178d6207
commit
c0e68645aa
28
.github/labeler.yml
vendored
28
.github/labeler.yml
vendored
@ -1,8 +1,22 @@
|
||||
documentation:
|
||||
- 'README.md'
|
||||
- 'docs/*'
|
||||
- 'docs/**/*'
|
||||
version: 1
|
||||
|
||||
ci:
|
||||
- '.github/workflows/*'
|
||||
- '.github/external_ci/*'
|
||||
labels:
|
||||
- label: "documentation"
|
||||
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
|
||||
|
||||
16
.github/workflows/labeler.yml
vendored
16
.github/workflows/labeler.yml
vendored
@ -1,14 +1,14 @@
|
||||
name: "Pull Request Labeler"
|
||||
|
||||
on:
|
||||
- pull_request_target
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/labeler@v4
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- uses: srvaroa/labeler@master
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user