Fix map for approvals list
This commit is contained in:
parent
cf8a2da467
commit
2e1bbe88dc
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,6 @@ var itr, _ = ghinstallation.New(http.DefaultTransport, 381312, 41105280, []byte(
|
|||
// Use installation transport with client.
|
||||
var client = github.NewClient(&http.Client{Transport: itr})
|
||||
var ctx = context.Background()
|
||||
var approvals map[int]string
|
||||
|
||||
func initGitHubClient() {
|
||||
log.Println("Initializing......")
|
||||
|
@ -126,6 +125,7 @@ func processIssueCommentEvent(event *github.IssueCommentEvent) {
|
|||
prNumber := event.GetIssue().GetNumber()
|
||||
reactionCount := 0
|
||||
reactionCountGoal := 5
|
||||
approvals := map[int]string{}
|
||||
|
||||
if event.GetIssue().IsPullRequest() {
|
||||
comments, _, err := client.Issues.ListComments(ctx, owner, repo, prNumber, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue