Skip to content

Commit 07433ec

Browse files
committed
update the use of github api
1 parent 69da2ad commit 07433ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/gopherbot/gopherbot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ func (b *gopherbot) freezeOldIssues(ctx context.Context) error {
635635
if *dryRun {
636636
return nil
637637
}
638-
_, err := b.ghc.Issues.Lock(ctx, "golang", "go", int(gi.Number))
638+
_, err := b.ghc.Issues.Lock(ctx, "golang", "go", int(gi.Number), nil)
639639
if err != nil {
640640
return err
641641
}

cmd/gopherstats/gopherstats.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (sc *statsClient) githubGroups() {
257257

258258
ps := new(personSet)
259259
teams[teamName] = ps
260-
users, _, err := sc.ghc.Organizations.ListTeamMembers(ctx, t.GetID(), &github.OrganizationListTeamMembersOptions{
260+
users, _, err := sc.ghc.Teams.ListTeamMembers(ctx, t.GetID(), &github.TeamListTeamMembersOptions{
261261
ListOptions: github.ListOptions{PerPage: 1000},
262262
})
263263
if err != nil {

0 commit comments

Comments
 (0)