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
31 changes: 31 additions & 0 deletions .github/workflows/pr-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PR Size Labeler

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
label-size:
permissions:
pull-requests: write
contents: read
runs-on: ubuntu-latest
steps:
# Using @v1 for automatic minor/patch updates. For enhanced security,
# consider pinning to a specific commit SHA instead of a version tag.
- 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: '50'
m_label: 'size/M'
m_max_size: '200'
l_label: 'size/L'
l_max_size: '500'
xl_label: 'size/XL'
xl_max_size: '1000'
xxl_label: 'size/XXL'
fail_if_xl: 'false'
files_to_ignore: 'package-lock.json,yarn.lock,dist/**'
Loading