mirror of
https://github.com/shizand/statapp.git
synced 2024-12-23 12:12:59 +03:00
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
|
# Основан на https://habr.com/ru/articles/662738/
|
|||
|
name: 'Проверка PR заголовка'
|
|||
|
|
|||
|
on:
|
|||
|
pull_request_target:
|
|||
|
types:
|
|||
|
- opened
|
|||
|
- edited
|
|||
|
- synchronize
|
|||
|
|
|||
|
jobs:
|
|||
|
main:
|
|||
|
name: Проверка PR заголовка
|
|||
|
runs-on: ubuntu-latest
|
|||
|
steps:
|
|||
|
# Please look up the latest version from
|
|||
|
# https://github.com/amannn/action-semantic-pull-request/releases
|
|||
|
- uses: amannn/action-semantic-pull-request@v3.4.6
|
|||
|
env:
|
|||
|
GITHUB_TOKEN: ${{ secrets.TERRAFORM_YANDEX_COMPUTE_TOKEN }}
|
|||
|
with:
|
|||
|
# Configure which types are allowed.
|
|||
|
# Default: https://github.com/commitizen/conventional-commit-types
|
|||
|
types: |
|
|||
|
breaking
|
|||
|
chore
|
|||
|
ci
|
|||
|
docs
|
|||
|
feat
|
|||
|
fix
|
|||
|
refactor
|
|||
|
security
|
|||
|
style
|
|||
|
test
|
|||
|
requireScope: false
|
|||
|
subjectPattern: ^(?![A-Z]).+$
|
|||
|
subjectPatternError: |
|
|||
|
Тема "{subject}" найденная в pull request заголовке "{title}"
|
|||
|
не соответствует настроенному шаблону. Пожалуйста, убедитесь,
|
|||
|
что тема не начинается с заглавной буквы.
|
|||
|
wip: true
|
|||
|
validateSingleCommit: false
|