From e29d8c756af25b9702b0715cf6414ac80b5c91da Mon Sep 17 00:00:00 2001 From: quillcraftsman Date: Sat, 7 Sep 2024 12:40:53 +0300 Subject: [PATCH] add labeler github action --- .github/workflows/labeler.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 0000000..29d1b66 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,32 @@ +name: labeler + +on: [pull_request] + +jobs: + labeler: + permissions: + pull-requests: write + contents: read + issues: write + 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: '200' + m_label: 'size/m' + m_max_size: '500' + l_label: 'size/l' + l_max_size: '1000' + xl_label: 'size/xl' + fail_if_xl: 'true' + 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: 'https://api.github.com' + files_to_ignore: '' \ No newline at end of file