Add release and PR title checks, shared CI scripts, Gitea PR template, and align pyproject.toml to v0.3.1. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
551 B
YAML
24 lines
551 B
YAML
name: PR Title Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
check-title:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Check PR title when source files change
|
|
env:
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
run: |
|
|
git fetch origin "${{ github.base_ref }}"
|
|
git diff --name-only "origin/${{ github.base_ref }}...HEAD" \
|
|
| scripts/ci/check-pr-title.sh "$PR_TITLE"
|