From 2115490b2ccad98a1366e62668ac3aa2c85f5247 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Wed, 4 Oct 2023 14:20:28 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D1=8F=D0=B5=D1=82=20labeler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .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..628b7d2 --- /dev/null +++ b/.github/workflows/size-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: > + Этот PR превышает рекомендуемый размер в 1000 строк. + Пожалуйста, убедитесь, что вы НЕ решаете несколько проблем с помощью одного PR. + github_api_url: 'api.github.com' + files_to_ignore: | + "ui_*.py"