ci: Add semantic PR title check

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-02-05 21:45:25 -05:00
parent f4343f7dc0
commit b7a44481fa
No known key found for this signature in database

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

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