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

42 lines
1.2 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
permissions: write-all
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_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