Skip to content

Commit cd4aec6

Browse files
authored
docs: Update links to use the latest version of GitHub documentation (#3648)
1 parent d1d6f45 commit cd4aec6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ include the specified OAuth token. Therefore, authenticated clients should
102102
almost never be shared between different users.
103103

104104
For API methods that require HTTP Basic Authentication, use the
105-
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/github#BasicAuthTransport).
105+
[`BasicAuthTransport`](https://pkg.go.dev/github.com/google/go-github/v74/github#BasicAuthTransport).
106106

107107
#### As a GitHub App ####
108108

example/commitpr/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//
1414
// Note, if you want to push a single file, you probably prefer to use the
1515
// content API. An example is available here:
16-
// https://pkg.go.dev/github.com/google/go-github/github#example-RepositoriesService-CreateFile
16+
// https://pkg.go.dev/github.com/google/go-github/v74/github#example-RepositoriesService-CreateFile
1717
//
1818
// Note, for this to work at least 1 commit is needed, so you if you use this
1919
// 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) {
173173
return err
174174
}
175175

176-
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/github#example-PullRequestsService-Create
176+
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/v74/github#example-PullRequestsService-Create
177177
func createPR() (err error) {
178178
if *prSubject == "" {
179179
return errors.New("missing `-pr-title` flag; skipping PR creation")

0 commit comments

Comments
 (0)