From a82d49247abed80e67581c5f0e8cdaad6714aa3e Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Wed, 19 Apr 2023 19:07:41 -0500 Subject: [PATCH] Shirt size labeling for PRs (#2467) Co-authored-by: Reinier van der Leer --- .github/workflows/pr-label.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/pr-label.yml b/.github/workflows/pr-label.yml index 92c5a66b..c0bbc8a4 100644 --- a/.github/workflows/pr-label.yml +++ b/.github/workflows/pr-label.yml @@ -26,3 +26,22 @@ jobs: repoToken: "${{ secrets.GITHUB_TOKEN }}" commentOnDirty: "This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request." commentOnClean: "Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly." + + size: + if: ${{ github.event_name == 'pull_request_target' }} + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: codelytv/pr-size-labeler@v1.7.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + s_label: "size/s" + s_max_size: "10" + 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: "api.github.com"