2023-10-04 14:20:28 +03:00
|
|
|
|
name: labeler
|
|
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
labeler:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
name: Label the PR size
|
2023-10-04 14:21:58 +03:00
|
|
|
|
permissions:
|
|
|
|
|
issues: write
|
|
|
|
|
pull-requests: write
|
2023-10-04 14:20:28 +03:00
|
|
|
|
steps:
|
2023-10-04 14:29:32 +03:00
|
|
|
|
- uses: codelytv/pr-size-labeler@v1.7.0
|
2023-10-04 14:20:28 +03:00
|
|
|
|
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"
|