When a PR is updated with a commit and the number of modified lines changes, the GHAction applies the label to the PR, however it does not remove the old label and adds the new label of the corresponding size.
Actually the action is quite simple:
on:
pull_request:
jobs:
tag_pr_size:
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: '30'
m_max_size: '100'
l_max_size: '500'
message_if_xl: >
'This PR exceeds the recommended size of 500 lines.
Please make sure you are NOT addressing multiple issues with one PR.’
Examples:
name: Label PR Size


Thanks for the work!
When a PR is updated with a commit and the number of modified lines changes, the GHAction applies the label to the PR, however it does not remove the old label and adds the new label of the corresponding size.
Actually the action is quite simple:
Examples:
name: Label PR Size

Thanks for the work!