Skip to content

Commit

Permalink
ci: Add semantic PR title check (#979)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
terrytangyuan authored Feb 6, 2025
1 parent 21f763c commit dd1265b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit dd1265b

Please sign in to comment.