0-0. Иванов Иван Иванович. 1234567890а. Проверка имени, описание и коммитов реквеста #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }}" |