From d24dc5da382da953a667bf265776f4ed249fd0c7 Mon Sep 17 00:00:00 2001 From: Bruce Ricard Date: Mon, 16 Oct 2023 11:10:10 -0400 Subject: [PATCH] feature: add change size to pull request * to be able to quickly see if a PR is going to take a long time to review or not * The file was copied from this page https://github.com/marketplace/actions/pull-request-size-labeler --- .github/workflows/labeler.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..7b524424130 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,28 @@ +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_label: 'size/xs' + xs_max_size: '10' + s_label: 'size/s' + s_max_size: '100' + m_label: 'size/m' + m_max_size: '500' + l_label: 'size/l' + l_max_size: '1000' + xl_label: 'size/xl' + fail_if_xl: 'false' + message_if_xl: > + This PR exceeds the recommended size of 1000 lines. + Please make sure you are NOT addressing multiple issues with one PR. + Note this PR might be rejected due to its size. + github_api_url: 'api.github.com' + files_to_ignore: ''