Skip to content

0-0. Иванов Иван Иванович. 1234567890а. Проверка имени, описание и коммитов реквеста #2

0-0. Иванов Иван Иванович. 1234567890а. Проверка имени, описание и коммитов реквеста

0-0. Иванов Иван Иванович. 1234567890а. Проверка имени, описание и коммитов реквеста #2

Workflow file for this run

name: "Check PR Title"
on:
pull_request:
types: [opened, edited, reopened, synchronize]
permissions:
contents: read
jobs:
pr-title:
name: Validate PR title
runs-on: ubuntu-24.04
# Run always except: for 'edited' only run when title changed
if: >-
github.event_name != 'pull_request' ||
github.event.action != 'edited' ||
contains(toJson(github.event.changes), 'title')
steps:
- name: Checkout repository (sparse, PR head)
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
sparse-checkout: |
scripts
sparse-checkout-cone: true
- name: Run PR title check
run: |
python3 scripts/check_pr_title.py "${{ github.event.pull_request.title }}"