Skip to content

Commit

Permalink
Update palantir/go-githubapp to v0.5.0 (#201)
Browse files Browse the repository at this point in the history
Enable the new error metrics and upgrade google/go-github to v32 for
compatibility.
  • Loading branch information
bluekeyes authored Aug 25, 2020
1 parent aa9136a commit a495289
Show file tree
Hide file tree
Showing 129 changed files with 2,313 additions and 685 deletions.
2 changes: 1 addition & 1 deletion bulldozer/config_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/pkg/errors"
"github.com/rs/zerolog"
"gopkg.in/yaml.v2"
Expand Down
2 changes: 1 addition & 1 deletion bulldozer/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"
"time"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/pkg/errors"
"github.com/rs/zerolog"

Expand Down
2 changes: 1 addition & 1 deletion bulldozer/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package bulldozer
import (
"context"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/pkg/errors"
"github.com/rs/zerolog"

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ go 1.13
require (
github.com/c2h5oh/datasize v0.0.0-20171227191756-4eba002a5eae
github.com/die-net/lrucache v0.0.0-20181227122439-19a39ef22a11
github.com/google/go-github/v31 v31.0.0
github.com/google/go-github/v32 v32.1.0
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/palantir/go-baseapp v0.2.0
github.com/palantir/go-githubapp v0.2.1-0.20200423005854-8924ef0f1e86
github.com/palantir/go-githubapp v0.5.0
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.18.0
github.com/spf13/cobra v0.0.3
Expand Down
10 changes: 6 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
github.com/google/go-github/v29 v29.0.2/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E=
github.com/google/go-github/v29 v29.0.3 h1:IktKCTwU//aFHnpA+2SLIi7Oo9uhAzgsdZNbcAqhgdc=
github.com/google/go-github/v29 v29.0.3/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E=
github.com/google/go-github/v31 v31.0.0 h1:JJUxlP9lFK+ziXKimTCprajMApV1ecWD4NB6CCb0plo=
github.com/google/go-github/v31 v31.0.0/go.mod h1:NQPZol8/1sMoWYGN2yaALIBytu17gAWfhbweiEed3pM=
github.com/google/go-github/v32 v32.0.0 h1:q74KVb22spUq0U5HqZ9VCYqQz8YRuOtL/39ZnfwO+NM=
github.com/google/go-github/v32 v32.0.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI=
github.com/google/go-github/v32 v32.1.0 h1:GWkQOdXqviCPx7Q7Fj+KyPoGm4SwHRh8rheoPhd27II=
github.com/google/go-github/v32 v32.1.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI=
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=
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA=
Expand All @@ -46,8 +48,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/palantir/go-baseapp v0.2.0 h1:EruWj7lBB7koSLuUjWRvNoIXdmowmLGj+rqiuoTnjgs=
github.com/palantir/go-baseapp v0.2.0/go.mod h1:7rEjgYzWbHLLuY+mV2iJthxTddEc6aO+kFYsjDKNmEs=
github.com/palantir/go-githubapp v0.2.1-0.20200423005854-8924ef0f1e86 h1:KEuyVd8h0wxk5JX5cLYyvPzMBsUgv3ELHrWCZNWRmBA=
github.com/palantir/go-githubapp v0.2.1-0.20200423005854-8924ef0f1e86/go.mod h1:FnefEL0l2Z3EIoKYhhtZEeHR8SJgbBNsYtk+Nh7Muf4=
github.com/palantir/go-githubapp v0.5.0 h1:mAdLgaaNV0zrqSv1q0zpJbKq65H92uIrAlSwRIRsGEE=
github.com/palantir/go-githubapp v0.5.0/go.mod h1:/Xm5h66uEBX24An2Ln8H6Rk44z8uwk4E6m4gNrPadjQ=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand Down
2 changes: 1 addition & 1 deletion pull/github_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion pull/pull_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/pkg/errors"
"github.com/rs/zerolog"
)
Expand Down
2 changes: 1 addition & 1 deletion server/handler/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package handler
import (
"context"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/palantir/go-githubapp/githubapp"
"github.com/pkg/errors"
"github.com/rs/zerolog"
Expand Down
2 changes: 1 addition & 1 deletion server/handler/check_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"encoding/json"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/palantir/go-githubapp/githubapp"
"github.com/pkg/errors"

Expand Down
2 changes: 1 addition & 1 deletion server/handler/issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"encoding/json"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/palantir/go-githubapp/githubapp"
"github.com/pkg/errors"

Expand Down
2 changes: 1 addition & 1 deletion server/handler/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"encoding/json"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/palantir/go-githubapp/githubapp"
"github.com/pkg/errors"

Expand Down
2 changes: 1 addition & 1 deletion server/handler/pull_request_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"encoding/json"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/palantir/go-githubapp/githubapp"
"github.com/pkg/errors"

Expand Down
2 changes: 1 addition & 1 deletion server/handler/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"encoding/json"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/palantir/go-githubapp/githubapp"
"github.com/pkg/errors"

Expand Down
2 changes: 1 addition & 1 deletion server/handler/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"encoding/json"

"github.com/google/go-github/v31/github"
"github.com/google/go-github/v32/github"
"github.com/palantir/go-githubapp/githubapp"
"github.com/pkg/errors"

Expand Down
7 changes: 6 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,13 @@ func New(c *Config) (*Server, error) {
&handler.Status{Base: baseHandler},
},
c.Github.App.WebhookSecret,
githubapp.WithErrorCallback(githubapp.MetricsErrorCallback(base.Registry())),
githubapp.WithScheduler(
githubapp.QueueAsyncScheduler(queueSize, workers, githubapp.WithSchedulingMetrics(base.Registry())),
githubapp.QueueAsyncScheduler(
queueSize, workers,
githubapp.WithSchedulingMetrics(base.Registry()),
githubapp.WithAsyncErrorCallback(githubapp.MetricsAsyncErrorCallback(base.Registry())),
),
),
)

Expand Down
132 changes: 0 additions & 132 deletions vendor/github.com/google/go-github/v31/github/actions_secrets.go

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a495289

Please sign in to comment.