From bfb8679bd95e9387b848ef856e8eb6f1a4a4bac5 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Tue, 2 Jun 2026 15:22:22 -0400 Subject: Made check-commit-suffix job check only relevant commits. Failing to set $BASE meant other commits on the target branch were checked. --- .github/workflows/check_commit_messages.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml index 3aef211f8d..0dbb36a999 100644 --- a/.github/workflows/check_commit_messages.yml +++ b/.github/workflows/check_commit_messages.yml @@ -22,7 +22,7 @@ jobs: with: persist-credentials: false - - name: Calculate commit prefix + - name: Set base and calculate commit prefix id: vars env: BASE: ${{ github.event.pull_request.base.ref }} @@ -80,6 +80,11 @@ jobs: with: persist-credentials: false + - name: Set base + env: + BASE: ${{ github.event.pull_request.base.ref }} + run: echo "BASE=$BASE" >> $GITHUB_ENV + - name: Fetch relevant branches run: | git fetch origin $BASE:base --depth=1 -- cgit v1.3