Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/pr-size-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: PR Size Labeler

on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, synchronize, reopened]

jobs:
size-label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Label PR based on size
uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: "size/XS"
xs_max_size: 10
s_label: "size/S"
s_max_size: 30
m_label: "size/M"
m_max_size: 100
l_label: "size/L"
l_max_size: 500
xl_label: "size/XL"
fail_if_xl: false
message_if_xl: >
This PR is very large. Consider breaking it down into smaller PRs
for easier review and better maintainability.
files_to_ignore: |
package-lock.json
yarn.lock
pnpm-lock.yaml
Cargo.lock
composer.lock
Pipfile.lock
poetry.lock
*.min.js
*.min.css
*.map
dist/*
build/*
__pycache__/*
*.pyc