From 5e6f7593cdf08b4d9878d74d30657adf794b365f Mon Sep 17 00:00:00 2001 From: Abdala Aljewarane Date: Mon, 17 Aug 2026 15:51:43 -0700 Subject: [PATCH] ci: only report new lint issues on PRs --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cbdb2d..7f7b9e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: Setup Go uses: actions/setup-go@v6 with: @@ -33,12 +35,12 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v9 with: + only-new-issues: true args: --disable errcheck - name: errcheck (non-blocking) uses: golangci/golangci-lint-action@v9 continue-on-error: true with: + only-new-issues: true args: --enable-only errcheck - - name: Run Linter - run: make -f ci/Makefile --include-dir ci ci-lint