Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto-casdiff-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x
check-latest: true
cache: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x
check-latest: true
cache: true
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fetch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x
check-latest: true
cache: true
- uses: bufbuild/buf-action@fd21066df7214747548607aaa45548ba2b9bc1ff # v1.4.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x
check-latest: true
cache: true
- name: Create Release
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: 1.26.x
go-version: 1.27.x
check-latest: true
cache: true
- name: Auth To GCP
Expand Down
35 changes: 18 additions & 17 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@ version: "2"
linters:
default: all
disable:
- cyclop # covered by gocyclo
- depguard # requires configuration for all non-stdlib deps
- exhaustruct # irrelevant for modules
- funlen # rely on code review to limit function length
- gocognit # dubious "cognitive overhead" quantification
- gomodguard # replaced by gomodguard_v2
- ireturn # "accept interfaces, return structs" isn't ironclad
- lll # don't want hard limits for line length
- maintidx # covered by gocyclo
- mnd # some unnamed constants are okay
- nlreturn # generous whitespace violates house style
- noinlineerr # inline error handling is idiomatic here
- testpackage # internal tests are fine
- varnamelen # too strict for common from/to and format f variables
- wrapcheck # don't _always_ need to wrap errors
- wsl # generous whitespace violates house style
- wsl_v5 # generous whitespace violates house style
- cyclop # covered by gocyclo
- depguard # requires configuration for all non-stdlib deps
- exhaustruct # irrelevant for modules
- exhaustruct_v5 # irrelevant for modules
- funlen # rely on code review to limit function length
- gocognit # dubious "cognitive overhead" quantification
- gomodguard # replaced by gomodguard_v2
- ireturn # "accept interfaces, return structs" isn't ironclad
- lll # don't want hard limits for line length
- maintidx # covered by gocyclo
- mnd # some unnamed constants are okay
- nlreturn # generous whitespace violates house style
- noinlineerr # inline error handling is idiomatic here
- testpackage # internal tests are fine
- varnamelen # too strict for common from/to and format f variables
- wrapcheck # don't _always_ need to wrap errors
- wsl # generous whitespace violates house style
- wsl_v5 # generous whitespace violates house style
settings:
errcheck:
check-type-assertions: true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-print-directory
BIN := .tmp/bin
COPYRIGHT_YEARS := 2021-2025
GOLANGCI_LINT_VERSION ?= v2.12.2
GOLANGCI_LINT_VERSION ?= v2.13.2
LICENSE_IGNORE := --ignore /testdata/ --ignore '\.yaml$$' --ignore '\.yml$$'
# Set to use a different compiler. For example, `GO=go1.18rc1 make test`.
GO ?= go
Expand Down
6 changes: 3 additions & 3 deletions cmd/commentprcasdiff/comment_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ func listExistingBotComments(ctx context.Context, client *githubutil.Client, prN
const githubActionsBotUsername = "github-actions[bot]"
result := make(map[commentKey]int64)
opts := &github.PullRequestListCommentsOptions{
Sort: "created",
Direction: "asc",
ListOptions: github.ListOptions{PerPage: 100},
Sort: "created",
Direction: "asc",
PerPage: 100,
}
for {
comments, resp, err := client.GitHub.PullRequests.ListComments(
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bufbuild/modules

go 1.26.7
go 1.27

require (
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.2
Expand Down
Loading