Skip to content

Commit 0fcdefd

Browse files
Fix go naming convention
1 parent c778eda commit 0fcdefd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,4 +1093,4 @@
10931093
"in": "header"
10941094
}
10951095
}
1096-
}
1096+
}

pkg/utils/github.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ func (c *GithubClient) ListPullRequests(ctx context.Context, repoName, repoOwner
8282

8383
var prs []*GithubPullRequest
8484
for {
85-
fetched_prs, resp, err := c.client.PullRequests.List(ctx, repoOwner, repoName, opts)
85+
fetchedPRs, resp, err := c.client.PullRequests.List(ctx, repoOwner, repoName, opts)
8686
if err != nil {
8787
if r, _ := err.(*github.ErrorResponse); r.Response.StatusCode == 404 {
88-
fetched_prs = []*github.PullRequest{}
88+
fetchedPRs = []*github.PullRequest{}
8989
} else {
9090
return nil, err
9191
}
9292
}
9393

94-
for _, pr := range fetched_prs {
94+
for _, pr := range fetchedPRs {
9595
number := *pr.Number
9696
if number < 0 {
9797
number = 0

0 commit comments

Comments
 (0)