ci: Add semantic PR title check (#979)

This adds a new workflow to check semantic PR titles to match the
[Conventional Commits spec](https://www.conventionalcommits.org/). This
will make it easier to browse commit history and enable automation in
the future.

---------

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-02-06 15:22:34 -05:00 committed by GitHub
parent 21f763c4f3
commit dd1265bea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

21
.github/workflows/semantic-pr.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Check semantic PR titles
on:
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
permissions:
contents: read
jobs:
title-check:
runs-on: ubuntu-latest
steps:
- name: Check PR Title's semantic conformance
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}