From 0a42382f1502a403da5763ce2c961533fa30ae9b Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Sun, 11 Jan 2026 10:27:36 -0600 Subject: [PATCH 1/2] ci: add PR format check workflow **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 | 37 +++++++++++++++++++++++ 1 file changed, 37 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 00000000..cc5cc731 --- /dev/null +++ b/.github/workflows/pr-formatting-check.yml @@ -0,0 +1,37 @@ +name: "PR Formatting" + +on: + pull_request_target: + types: + - assigned + - unassigned + - labeled + - unlabeled + - opened + - reopened + - edited + - converted_to_draft + - ready_for_review + - review_requested + - review_request_removed + - locked + - unlocked + - synchronize + +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: step-security/conventional-pr-title-action@101b3d5adffb51b5789997fea508c8313c8ddf02 # v3.2.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From aebd9678c8359b94a20871a673431e8ee984f9fa Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Mon, 12 Jan 2026 11:08:41 -0600 Subject: [PATCH 2/2] Apply suggestions from code review --- .github/workflows/pr-formatting-check.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/pr-formatting-check.yml b/.github/workflows/pr-formatting-check.yml index cc5cc731..044b7b64 100644 --- a/.github/workflows/pr-formatting-check.yml +++ b/.github/workflows/pr-formatting-check.yml @@ -3,20 +3,9 @@ name: "PR Formatting" on: pull_request_target: types: - - assigned - - unassigned - - labeled - - unlabeled - opened - reopened - edited - - converted_to_draft - - ready_for_review - - review_requested - - review_request_removed - - locked - - unlocked - - synchronize permissions: statuses: write @@ -32,6 +21,6 @@ jobs: egress-policy: audit - name: Check PR Title - uses: step-security/conventional-pr-title-action@101b3d5adffb51b5789997fea508c8313c8ddf02 # v3.2.2 + uses: amannn/action-semantic-pull-request@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}