File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,12 @@ func (builder *eventDataBuilder) readFromJson(payload *payload) {
6363 builder .data .additions = payload .PullRequest .Additions
6464 builder .data .deletions = payload .PullRequest .Deletions
6565 builder .data .ref = payload .PullRequest .Base .Ref
66- assignees := make ([]string , 0 )
67- for _ , assignee := range payload .PullRequest .Assignees {
68- assignees = append (assignees , assignee .Login )
69- }
70- builder .data .assignees = assignees
7166 builder .data .origin = payload .PullRequest .User .Login
72- builder .data .state = payload .PullRequest .State
7367}
7468
7569func (builder * eventDataBuilder ) readFromClient () {
7670 id := builder .data .number
71+ builder .data .assignees = builder .client .GetAssignees (id )
7772 builder .data .state = builder .client .GetState (id )
7873 builder .data .labels = builder .client .GetLabels (id )
7974 builder .data .comments = builder .client .GetComments (id )
You can’t perform that action at this time.
0 commit comments