From 23720b925db504b809cd47c47fbc2d61c1b60366 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Thu, 6 Aug 2026 08:25:06 +0000 Subject: [PATCH] ci: write the job summary from one matrix leg, not three MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every leg checks the same commits against the same rules, so all three produce a byte-identical report and the run page carries three copies of it. The matrix is here to prove the action runs on ubuntu, macos and windows — not to say the same thing three times. pr-comments was already guarded this way two lines below; this is the same guard on the surface that was still missing it. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01U9zFxq8V4qxG4aMzJhGBFn --- .github/workflows/commit-check.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml index 8a5f8da..75e1f65 100644 --- a/.github/workflows/commit-check.yml +++ b/.github/workflows/commit-check.yml @@ -25,7 +25,11 @@ jobs: branch: true author-name: true author-email: true - job-summary: true - # Only post PR comments from the ubuntu job to avoid duplicates + # Report from the ubuntu job only. Every leg checks the same commits + # against the same rules, so the other two produce a byte-identical + # report — three copies of it on the run page, and the matrix is here + # to prove the action runs on each OS, not to say the same thing + # three times. + job-summary: ${{ matrix.os == 'ubuntu-latest' }} pr-comments: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' }} pr-title: true