From 3f870efba5b49d41342825c1194f5df38d72f694 Mon Sep 17 00:00:00 2001 From: JoannaaKL Date: Mon, 27 Oct 2025 10:46:33 +0000 Subject: [PATCH 1/2] Add default linters and bump golangci-lint version --- .github/workflows/lint.yml | 2 +- .golangci.yml | 5 +++++ script/lint | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d27637774..7c0715b7d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,4 +20,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v8 with: - version: v2.1 + version: v2.5 diff --git a/.golangci.yml b/.golangci.yml index f86326cfa..6891db89e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,6 +11,11 @@ linters: - misspell - nakedret - revive + - errcheck + - staticcheck + - govet + - ineffassign + - unused exclusions: generated: lax presets: diff --git a/script/lint b/script/lint index e6ea9da89..47dd537ea 100755 --- a/script/lint +++ b/script/lint @@ -5,7 +5,7 @@ gofmt -s -w . BINDIR="$(git rev-parse --show-toplevel)"/bin BINARY=$BINDIR/golangci-lint -GOLANGCI_LINT_VERSION=v2.2.1 +GOLANGCI_LINT_VERSION=v2.5.0 if [ ! -f "$BINARY" ]; then curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GOLANGCI_LINT_VERSION" From 2b5b153f971649cc46c7faf0513d6e6dfe907f43 Mon Sep 17 00:00:00 2001 From: JoannaaKL Date: Mon, 27 Oct 2025 10:51:02 +0000 Subject: [PATCH 2/2] More aggressive policy --- .github/workflows/close-inactive-issues.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml index bd33d4980..84d91d1e4 100644 --- a/.github/workflows/close-inactive-issues.yml +++ b/.github/workflows/close-inactive-issues.yml @@ -7,8 +7,8 @@ jobs: close-issues: runs-on: ubuntu-latest env: - PR_DAYS_BEFORE_STALE: 60 - PR_DAYS_BEFORE_CLOSE: 120 + PR_DAYS_BEFORE_STALE: 30 + PR_DAYS_BEFORE_CLOSE: 60 PR_STALE_LABEL: stale permissions: issues: write @@ -21,8 +21,8 @@ jobs: stale-issue-label: ${{ env.PR_STALE_LABEL }} stale-issue-message: "This issue is stale because it has been open for ${{ env.PR_DAYS_BEFORE_STALE }} days with no activity. Leave a comment to avoid closing this issue in ${{ env.PR_DAYS_BEFORE_CLOSE }} days." close-issue-message: "This issue was closed because it has been inactive for ${{ env.PR_DAYS_BEFORE_CLOSE }} days since being marked as stale." - days-before-pr-stale: -1 - days-before-pr-close: -1 + days-before-pr-stale: ${{ env.PR_DAYS_BEFORE_STALE }} + days-before-pr-close: ${{ env.PR_DAYS_BEFORE_STALE }} # Start with the oldest items first ascending: true repo-token: ${{ secrets.GITHUB_TOKEN }}