From ab42c937ec7c62b0345f61c3e950cb785a470dc7 Mon Sep 17 00:00:00 2001 From: John McBride Date: Tue, 29 Mar 2022 16:56:24 -0600 Subject: [PATCH] Adds size labeler GitHub action (#1610) Signed-off-by: John McBride --- .github/workflows/size-labeler.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/size-labeler.yml diff --git a/.github/workflows/size-labeler.yml b/.github/workflows/size-labeler.yml new file mode 100644 index 0000000..af081dc --- /dev/null +++ b/.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.’