Skip to content

Commit cb616af

Browse files
authored
docs: Fix documentation links (#4036)
1 parent 5edd2ee commit cb616af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

github/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ recommended when making requests using short-lived credentials such as a
150150
GitHub App installation token.
151151
152152
Learn more about GitHub conditional requests at
153-
https://docs.github.com/rest/overview/resources-in-the-rest-api#conditional-requests.
153+
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.
154154
155155
# Creating and Updating Resources
156156

github/examples_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func ExampleRepositoriesService_CreateFile() {
7272
// so you will need to modify the example to provide an oauth client to
7373
// github.NewClient() instead of nil. See the following documentation for more
7474
// information on how to authenticate with the client:
75-
// https://pkg.go.dev/github.com/google/go-github/github#hdr-Authentication
75+
// https://pkg.go.dev/github.com/google/go-github/v83/github#hdr-Authentication
7676
client := github.NewClient(nil)
7777

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

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

152152
teamName := "Developers team"

0 commit comments

Comments
 (0)