Skip to content

ci: match GitLab CI to GitHub and share the PR title check - #36

Merged
SeanathanVT merged 2 commits into
developmentfrom
ci/semantic-pr-title
Nov 11, 2026
Merged

SeanathanVT merged 2 commits into
developmentfrom
ci/semantic-pr-title

Conversation

@SeanathanVT

Copy link
Copy Markdown
Owner

Summary

Squash merges make the PR title the commit subject on development, so a non-Conventional title lands a non-Conventional commit (e.g. fa276dd, #30). This adds a title check and brings GitLab CI in line with GitHub.

  • ci/check_pr_title.py: one checker for both platforms (Conventional Commits types, optional scope and !; GitLab Draft: prefixes ignored). Run by .github/workflows/pr-title.yml on PR open/edit/sync/reopen and by a mr-title job on GitLab MR pipelines.
  • .gitlab-ci.yml: test matrix 3.10 and 3.13 (was 3.12); branch pipelines only for main/development; ruff findings in the MR Code Quality widget; pytest -ra.
  • Docs: AGENTS.md, README CI paragraph.

Platform differences

  • GitLab doesn't rerun pipelines on MR title edits; the title check reruns on the next push.
  • Coverage is in the MR widget on GitLab only.

Testing

  • tests/test_pr_title.py; 569 passed on 3.10/3.12/3.13; ruff check . clean.
  • Edit this PR's title to a non-conforming one, confirm the check fails, restore it.
  • GitLab: confirm the matrix, Code Quality report and mr-title jobs run on the mirrored MR.

🤖 Generated with Claude Code

SeanathanVT and others added 2 commits November 11, 2026 13:45
- Add pr-title workflow (action-semantic-pull-request) on open/edit/sync
- Document the PR-title rule in AGENTS.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Check PR/MR titles with one script (ci/check_pr_title.py) on both platforms
- GitLab: test Python 3.10 and 3.13, branch pipelines only for main/development
- GitLab: report ruff findings in the MR widget
- Document the title check and CI parity in AGENTS.md and README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SeanathanVT SeanathanVT added the enhancement New feature or request label Nov 11, 2026
@SeanathanVT
SeanathanVT merged commit cb01aaa into development Nov 11, 2026
3 checks passed
@SeanathanVT
SeanathanVT deleted the ci/semantic-pr-title branch November 11, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant