Skip to content

Commit

Permalink
Adds size labeler GitHub action (#1610)
Browse files Browse the repository at this point in the history
Signed-off-by: John McBride <jmcbride@vmware.com>
  • Loading branch information
jpmcb committed Mar 29, 2022
1 parent 52e6099 commit ab42c93
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/size-labeler.yml
@@ -0,0 +1,28 @@
# Reference: https://github.com/CodelyTV/pr-size-labeler

name: size-labeler

on: [pull_request_target]

jobs:
size-labeler:
runs-on: ubuntu-latest
name: Label the PR size
steps:
- uses: codelytv/pr-size-labeler@v1.8.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/XS'
xs_max_size: '10'
s_label: 'size/S'
s_max_size: '24'
m_label: 'size/M'
m_max_size: '99'
l_label: 'size/L'
l_max_size: '200'
xl_label: 'size/XL'
fail_if_xl: 'false'
message_if_xl: >
'This PR exceeds the recommended size of 200 lines.
Please make sure you are NOT addressing multiple issues with one PR.
Note this PR might be rejected due to its size.’

0 comments on commit ab42c93

Please sign in to comment.