From dd1265bea77b6089301be9c5ddf76081298b9d66 Mon Sep 17 00:00:00 2001 From: Yuan Tang Date: Thu, 6 Feb 2025 15:22:34 -0500 Subject: [PATCH] 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 --- .github/workflows/semantic-pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/semantic-pr.yml diff --git a/.github/workflows/semantic-pr.yml b/.github/workflows/semantic-pr.yml new file mode 100644 index 000000000..460acf237 --- /dev/null +++ b/.github/workflows/semantic-pr.yml @@ -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 }}