From 65d23910a3b813977dcedfc06871e3c3bff99a98 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Wed, 14 Jan 2026 04:04:02 -0600 Subject: [PATCH] ci: add PR format check workflow (#328) **Description**: Add a new workflow to check the PR formatting to ensure consistency on PR titles. We can also use this for semantic release versioning later, if we so desire. **Related Issue(s)**: Implements first portion of #327 --------- Signed-off-by: Andrew Brandt --- .github/workflows/pr-formatting-check.yml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pr-formatting-check.yml diff --git a/.github/workflows/pr-formatting-check.yml b/.github/workflows/pr-formatting-check.yml new file mode 100644 index 0000000..044b7b6 --- /dev/null +++ b/.github/workflows/pr-formatting-check.yml @@ -0,0 +1,26 @@ +name: "PR Formatting" + +on: + pull_request_target: + types: + - opened + - reopened + - edited + +permissions: + statuses: write + +jobs: + title-check: + name: Title Check + runs-on: ubuntu-latest + steps: + - name: Harden Runner + uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 + with: + egress-policy: audit + + - name: Check PR Title + uses: amannn/action-semantic-pull-request@v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}