From 4302163bc9924d1defc36f26ebb12662b9909125 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 30 Apr 2024 13:04:08 -0400 Subject: [PATCH] Add a PR size labeler --- .github/workflows/labeler.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 00000000..59c97f86 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,23 @@ +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: '5' + s_label: 'size/S' + s_max_size: '15' + m_label: 'size/M' + m_max_size: '50' + l_label: 'size/L' + l_max_size: '200' + xl_label: 'size/XL' + fail_if_xl: 'false' + github_api_url: 'https://api.github.com'