You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Pull Request size labeler
v1.4.1
Visualize and optionally limit the size of your Pull Requests
Create a file named labeler.yml
inside the .github/workflows
directory and paste:
name: labeler
on: [pull_request]
jobs:
labeler:
runs-on: ubuntu-latest
name: Label the PR size
steps:
- uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_max_size: '10'
s_max_size: '100'
m_max_size: '500'
l_max_size: '1000'
fail_if_xl: 'false'
message_if_xl: 'This PR is sooooo big!! 😳'
If you want, you can customize all
*_max_size
with the size that fits in your project.
Setting
fail_if_xl
to'true'
will make fail all pull requests bigger thanl_max_size
.