dmitri.shuralyov.com/app/changes/cmd/changesdev

Update for githubapi API change.

Follows https://dmitri.shuralyov.com/service/change/...$commit/fc8c6aa79f17ce892e73e9f5422bb8b24becdd14.
dmitshur committed 6 years ago commit 1b6999e6316d9714f1450f439c65eac5f4aa70f0
Showing partial commit. Full Commit
Collapse all
cmd/changesdev/main.go
@@ -81,11 +81,11 @@ func main() {
		var err error
		usersService, err = ghusers.NewService(ghV3)
		if err != nil {
			log.Fatalln("ghusers.NewService:", err)
		}
		service = githubapi.NewService(ghV3, ghV4, nil)
		service = githubapi.NewService(ghV3, ghV4, nil, nil)

	case 1:
		cacheTransport := httpcache.NewMemoryCacheTransport()
		gerrit, err := gerrit.NewClient("https://go-review.googlesource.com/", &http.Client{Transport: cacheTransport})
		//gerrit, err := gerrit.NewClient("https://upspin-review.googlesource.com/", &http.Client{Transport: cacheTransport})