From 799d031610bee5512c183d0d4160550ddda46ede Mon Sep 17 00:00:00 2001 From: Joshua Blum Date: Wed, 9 Sep 2026 11:52:28 -0400 Subject: [PATCH 1/4] test against latest go --- .github/workflows/ci.yml | 2 +- go.mod | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae3d873..dd78bd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: timeout-minutes: 15 strategy: matrix: - go-version: [1.25.x] + go-version: [1.26.x, 1.27.x] os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: diff --git a/go.mod b/go.mod index 83142c3..4f91a4c 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/keybase/slackbot -go 1.25.0 +go 1.26.0 -toolchain go1.25.5 +toolchain go1.27.1 require ( github.com/alecthomas/kingpin/v2 v2.4.0 From 13bd0a6753bced5e77811a9ca27c31df8341a881 Mon Sep 17 00:00:00 2001 From: Joshua Blum Date: Wed, 9 Sep 2026 12:03:58 -0400 Subject: [PATCH 2/4] update golangci-lint --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd78bd6..ecf9d8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v9 with: - version: v2.7.2 + version: v2.13.2 - name: Build run: go build -v ./... From f5a47ec0456e55083168478e5cc70f14cc187908 Mon Sep 17 00:00:00 2001 From: Joshua Blum Date: Wed, 9 Sep 2026 12:37:24 -0400 Subject: [PATCH 3/4] update GitHub Actions to latest versions --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecf9d8b..011e0e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,17 +27,17 @@ jobs: os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - - uses: actions/setup-go@v6 + - uses: actions/setup-go@v7.0.0 with: go-version: ${{ matrix.go-version }} cache: true - name: golangci-lint - uses: golangci/golangci-lint-action@v9 + uses: golangci/golangci-lint-action@v9.3.0 with: version: v2.13.2 @@ -45,7 +45,7 @@ jobs: run: go build -v ./... - name: Run govulncheck - uses: golang/govulncheck-action@v1 + uses: golang/govulncheck-action@v1.1.0 with: go-version-input: ${{ matrix.go-version }} From f9dbfc1d8f8fac0479086c78b1bcbeca7c4c8d6d Mon Sep 17 00:00:00 2001 From: Joshua Blum Date: Wed, 9 Sep 2026 12:44:56 -0400 Subject: [PATCH 4/4] run go fix --- bot.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bot.go b/bot.go index 23902e3..7be3b8b 100644 --- a/bot.go +++ b/bot.go @@ -8,6 +8,7 @@ import ( "fmt" "log" "runtime/debug" + "slices" "sort" "strings" "text/tabwriter" @@ -198,12 +199,7 @@ func (*noopBackend) Listen(BotCommandRunner) error { return nil } // HasIgnorePauseFlag reports whether args contain the --ignore-pause flag, // which lets a single command run while the bot stays paused. func HasIgnorePauseFlag(args []string) bool { - for _, arg := range args { - if arg == "--ignore-pause" { - return true - } - } - return false + return slices.Contains(args, "--ignore-pause") } // BlockQuote returns the string block-quoted