From 8255dc2189d439dda6b1c90dfa18cd9825b772e4 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 25 Jul 2025 11:40:02 +0300 Subject: [PATCH] docs: Update links to use the latest version of github documentation --- README.md | 2 +- example/commitpr/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 234152e2b88..93d28a6451e 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ include the specified OAuth token. Therefore, authenticated clients should almost never be shared between different users. For API methods that require HTTP Basic Authentication, use the -[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/github#BasicAuthTransport). +[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v74/github#BasicAuthTransport). #### As a GitHub App #### diff --git a/example/commitpr/main.go b/example/commitpr/main.go index 4df78b485ed..bc402dac750 100644 --- a/example/commitpr/main.go +++ b/example/commitpr/main.go @@ -13,7 +13,7 @@ // // Note, if you want to push a single file, you probably prefer to use the // content API. An example is available here: -// https://pkg.go.dev/github.com/google/go-github/github#example-RepositoriesService-CreateFile +// https://pkg.go.dev/github.com/google/go-github/v74/github#example-RepositoriesService-CreateFile // // Note, for this to work at least 1 commit is needed, so you if you use this // after creating a repository you might want to make sure you set `AutoInit` to @@ -173,7 +173,7 @@ func pushCommit(ref *github.Reference, tree *github.Tree) (err error) { return err } -// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/github#example-PullRequestsService-Create +// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v74/github#example-PullRequestsService-Create func createPR() (err error) { if *prSubject == "" { return errors.New("missing `-pr-title` flag; skipping PR creation")