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/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ recommended when making requests using short-lived credentials such as a
GitHub App installation token.

Learn more about GitHub conditional requests at
https://docs.github.com/rest/overview/resources-in-the-rest-api#conditional-requests.
https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api?apiVersion=2022-11-28#use-conditional-requests-if-appropriate.

# Creating and Updating Resources

Expand Down
6 changes: 3 additions & 3 deletions github/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func ExampleRepositoriesService_CreateFile() {
// so you will need to modify the example to provide an oauth client to
// github.NewClient() instead of nil. See the following documentation for more
// information on how to authenticate with the client:
// https://pkg.go.dev/github.com/google/go-github/github#hdr-Authentication
// https://pkg.go.dev/github.com/google/go-github/v83/github#hdr-Authentication
client := github.NewClient(nil)

ctx := context.Background()
Expand Down Expand Up @@ -117,7 +117,7 @@ func ExamplePullRequestsService_Create() {
// so you will need to modify the example to provide an oauth client to
// github.NewClient() instead of nil. See the following documentation for more
// information on how to authenticate with the client:
// https://pkg.go.dev/github.com/google/go-github/github#hdr-Authentication
// https://pkg.go.dev/github.com/google/go-github/v83/github#hdr-Authentication
client := github.NewClient(nil)

newPR := &github.NewPullRequest{
Expand Down Expand Up @@ -146,7 +146,7 @@ func ExampleTeamsService_ListTeams() {
// the example to provide an oauth client to github.NewClient() instead of nil.
// See the following documentation for more information on how to authenticate
// with the client:
// https://pkg.go.dev/github.com/google/go-github/github#hdr-Authentication
// https://pkg.go.dev/github.com/google/go-github/v83/github#hdr-Authentication
client := github.NewClient(nil)

teamName := "Developers team"
Expand Down
Loading