Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
179669a
doc: Add security warning to NewClient
google-labs-jules[bot] Jan 11, 2026
7409d8e
Merge pull request #1 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 11, 2026
0e9371b
perf: Optimize Stringify for strings and add NewClient warning
google-labs-jules[bot] Jan 12, 2026
d555072
Merge pull request #2 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 12, 2026
40cff67
perf: Optimize Stringify with sync.Pool and strconv
google-labs-jules[bot] Jan 12, 2026
73595b0
Merge pull request #3 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 13, 2026
b7c8b07
Merge branch 'master' into master
merchantmoh-debug Jan 13, 2026
db3eeab
perf: Optimize Stringify allocations (~2x faster) and document NewCli…
google-labs-jules[bot] Jan 13, 2026
0bbd06c
perf: Optimize Stringify with sync.Pool and strconv
google-labs-jules[bot] Jan 13, 2026
7d04b79
Merge pull request #4 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 13, 2026
32c23fd
perf: Optimize Stringify with sync.Pool and strconv
google-labs-jules[bot] Jan 13, 2026
6412c34
Merge pull request #5 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 13, 2026
40745a1
perf: Optimize Stringify allocations (~2x faster) and document NewCli…
google-labs-jules[bot] Jan 13, 2026
5188281
Merge branch 'master' into bolt-sentinel-client-improvement-109997907…
merchantmoh-debug Jan 13, 2026
2aa01e8
Merge pull request #6 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 13, 2026
c2ad584
perf: Optimize Stringify allocations (~2x faster) and document NewCli…
google-labs-jules[bot] Jan 13, 2026
2b59c71
perf: Optimize Stringify with sync.Pool and strconv
google-labs-jules[bot] Jan 13, 2026
83b688b
Merge branch 'master' into bolt-sentinel-client-improvement-109997907…
merchantmoh-debug Jan 13, 2026
edb05e9
Merge pull request #7 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 13, 2026
fdc6608
Merge branch 'master' into master
merchantmoh-debug Jan 14, 2026
99b5282
perf: Optimize Stringify allocations (~2x faster) and document NewCli…
google-labs-jules[bot] Jan 14, 2026
7fd5e97
Merge branch 'master' into bolt-sentinel-client-improvement-109997907…
merchantmoh-debug Jan 14, 2026
dc3fb8c
Merge pull request #8 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 14, 2026
54ddc93
perf: Optimize Stringify allocations (~2x faster) and document NewCli…
google-labs-jules[bot] Jan 14, 2026
069fb9d
Merge branch 'master' into bolt-sentinel-client-improvement-109997907…
merchantmoh-debug Jan 14, 2026
dff2b91
Merge pull request #9 from merchantmoh-debug/bolt-sentinel-client-imp…
merchantmoh-debug Jan 14, 2026
ea23ae6
Merge branch 'master' into master
merchantmoh-debug Jan 15, 2026
a25ab37
Revert "perf: Optimize Stringify with recursion safety and tests"
google-labs-jules[bot] Jan 15, 2026
99d3d92
Merge pull request #10 from merchantmoh-debug/bolt-sentinel-client-im…
merchantmoh-debug Jan 15, 2026
5c27297
fix: isolate stringify optimization and revert unrelated changes
merchantmoh-debug Jan 23, 2026
4536640
feat(otel): add optional OpenTelemetry transport module
merchantmoh-debug Jan 24, 2026
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/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: 1.x
cache-dependency-path: "**/go.sum"
Expand Down
20 changes: 3 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,11 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

# Get values for cache paths to be used in later steps
- id: cache-paths
run: |
echo "go-cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT

- name: Cache go modules
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
- uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
path: |
${{ steps.cache-paths.outputs.go-cache }}
${{ steps.cache-paths.outputs.go-mod-cache }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
go-version: ${{ matrix.go-version }}
cache-dependency-path: "**/go.sum"

- name: Run go test
run: |
Expand Down
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ linters:
- godot
- goheader
- gosec
- govet
- intrange
- misspell
- modernize
Expand Down Expand Up @@ -65,6 +66,11 @@ linters:
- G104
# int(os.Stdin.Fd())
- G115
govet:
enable-all: true
disable:
- fieldalignment
- shadow
misspell:
locale: US
# extra words from https://go.dev//wiki/Spelling
Expand Down
1 change: 1 addition & 0 deletions REVIEWERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
stevehipwell
alexandear
zyfy29
Not-Dhananjay-Mishra
29 changes: 29 additions & 0 deletions github/example_iterators_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2025 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package github_test

import (
"context"
"fmt"
"log"

"github.com/google/go-github/v81/github"
)

func ExampleRepositoriesService_ListByUserIter() {
client := github.NewClient(nil)
ctx := context.Background()

// List all repositories for a user using the iterator.
// This automatically handles pagination.
opts := &github.RepositoryListByUserOptions{Type: "public"}
for repo, err := range client.Repositories.ListByUserIter(ctx, "octocat", opts) {
if err != nil {
log.Fatalf("Error listing repos: %v", err)
}
fmt.Println(repo.GetName())
}
}
Loading