Skip to content

Commit

Permalink
Get Pull Requests
Browse files Browse the repository at this point in the history
  • Loading branch information
chaspy committed Jan 24, 2021
1 parent c23b889 commit 6346ad6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ go 1.15

require (
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-querystring v1.0.0 // indirect
github.com/zorkian/go-datadog-api v2.30.0+incompatible
golang.org/x/oauth2 v0.0.0-20210113205817-d3ed898aa8a3 // indirect
golang.org/x/oauth2 v0.0.0-20210113205817-d3ed898aa8a3
)
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func run() error {

client := github.NewClient(tc)

repos, _, err := client.Repositories.List(ctx, "chaspy", nil)
fmt.Printf("strArray[%%v] -> %v\n", repos)
prs, _, err := client.PullRequests.List(ctx, "quipper", "kubernetes-clusters", nil)
fmt.Printf("%v\n", *prs[0].Number)

ddClient := datadog.NewClient(apikey, appkey)

Expand Down

0 comments on commit 6346ad6

Please sign in to comment.