statapp/.github/workflows/pr-title.yml

42 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Основан на 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