Skip to content

Commit

Permalink
chore: Adjust import style
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Mar 7, 2019
1 parent 5a83358 commit c030703
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion epic/accept_changeset.go
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"strings"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"

"errors"

Expand Down
2 changes: 1 addition & 1 deletion epic/accept_review.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"

"errors"

Expand Down
2 changes: 1 addition & 1 deletion epic/assign_reviewer.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
"github.com/student-kyushu/frau/operation"
)

Expand Down
2 changes: 1 addition & 1 deletion epic/cancel_approved_changeset.go
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"

"github.com/student-kyushu/frau/input"
"github.com/student-kyushu/frau/operation"
Expand Down
2 changes: 1 addition & 1 deletion epic/check_autobranch.go
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
"github.com/student-kyushu/frau/operation"
"github.com/student-kyushu/frau/queue"
"github.com/student-kyushu/frau/setting"
Expand Down
2 changes: 1 addition & 1 deletion epic/detect_unmergeable.go
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"sync"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"

"github.com/student-kyushu/frau/operation"
)
Expand Down
2 changes: 1 addition & 1 deletion epic/get_repository_config.go
Expand Up @@ -6,7 +6,7 @@ import (
"io/ioutil"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
"github.com/student-kyushu/frau/setting"
)

Expand Down
2 changes: 1 addition & 1 deletion epic/remove_all_status_label.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
"github.com/student-kyushu/frau/operation"
)

Expand Down
5 changes: 1 addition & 4 deletions go.mod
Expand Up @@ -2,11 +2,8 @@ module github.com/student-kyushu/frau

require (
github.com/BurntSushi/toml v0.0.0-20170626110600-a368813c5e64
github.com/golang/protobuf v1.2.0 // indirect
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-querystring v1.0.0 // indirect
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d // indirect
github.com/google/go-github/v24 v24.0.1
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect
google.golang.org/appengine v1.1.0 // indirect
)
4 changes: 4 additions & 0 deletions go.sum
Expand Up @@ -4,13 +4,17 @@ github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY=
github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
github.com/google/go-github/v24 v24.0.1 h1:KCt1LjMJEey1qvPXxa9SjaWxwTsCWSq6p2Ju57UR4Q4=
github.com/google/go-github/v24 v24.0.1/go.mod h1:CRqaW1Uns1TCkP0wqTpxYyRxRjxwvKU/XSS44u6X74M=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
golang.org/x/crypto v0.0.0-20180820150726-614d502a4dac/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d h1:g9qWBGx4puODJTMVyoPrpoxPFgVGd+z1DZwjfRu4d0I=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180824143301-4910a1d54f87/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
google.golang.org/appengine v1.1.0 h1:igQkv0AAhEIvTEpD5LIpAfav2eeVO9HBTjvKHVJPRSs=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
2 changes: 1 addition & 1 deletion operation/branch.go
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
)

func createAutoBranch(ctx context.Context, svc *github.GitService, owner string, repo string, number int, branchName string) (ok bool, ref *github.Reference) {
Expand Down
2 changes: 1 addition & 1 deletion operation/comment.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"log"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
)

func AddComment(ctx context.Context, issueSvc *github.IssuesService, owner string, name string, issue int, body string) bool {
Expand Down
2 changes: 1 addition & 1 deletion operation/label.go
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"strings"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion operation/pull_request.go
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
)

func IsMergeable(ctx context.Context, prSvc *github.PullRequestsService, owner, name string, issue int, pr *github.PullRequest) (bool, bool) {
Expand Down
2 changes: 1 addition & 1 deletion server.go
Expand Up @@ -9,7 +9,7 @@ import (
"reflect"
"strings"

"github.com/google/go-github/github"
"github.com/google/go-github/v24/github"
"golang.org/x/oauth2"

"github.com/student-kyushu/frau/epic"
Expand Down

0 comments on commit c030703

Please sign in to comment.