Add PR size labeler

This commit is contained in:
Adria Navarro 2024-06-04 12:58:43 +02:00
parent 7a2b338786
commit 8018d957ae
1 changed files with 25 additions and 0 deletions

25
.github/workflows/pr-labeler.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: PR labeler
on:
pull_request:
types: [opened, synchronize]
jobs:
size-labeler:
runs-on: ubuntu-latest
name: Label the PR size
steps:
- uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: "xs"
xs_max_size: "10"
s_label: "s"
s_max_size: "100"
m_label: "m"
m_max_size: "500"
l_label: "l"
l_max_size: "1000"
xl_label: "xl"
fail_if_xl: "false"
files_to_ignore: "yarn.lock"