This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 49f9a8a2 fix(github): remove duplicate logic in issue_extractor
(#2443) (#2446)
49f9a8a2 is described below
commit 49f9a8a2102f643ed733afe32cbf61e53a7d7540
Author: Keon Amini <[email protected]>
AuthorDate: Fri Jul 8 02:47:10 2022 -0500
fix(github): remove duplicate logic in issue_extractor (#2443) (#2446)
---
plugins/github/tasks/issue_extractor.go | 8 --------
1 file changed, 8 deletions(-)
diff --git a/plugins/github/tasks/issue_extractor.go
b/plugins/github/tasks/issue_extractor.go
index 0e8bd712..defb43c6 100644
--- a/plugins/github/tasks/issue_extractor.go
+++ b/plugins/github/tasks/issue_extractor.go
@@ -175,14 +175,6 @@ func convertGithubIssue(issue *IssuesResponse,
connectionId uint64, repositoryId
if issue.ClosedAt != nil {
githubIssue.LeadTimeMinutes =
uint(issue.ClosedAt.ToTime().Sub(issue.GithubCreatedAt.ToTime()).Minutes())
}
- if issue.Assignee != nil {
- githubIssue.AssigneeId = issue.Assignee.Id
- githubIssue.AssigneeName = issue.Assignee.Login
- }
- if issue.User != nil {
- githubIssue.AuthorId = issue.User.Id
- githubIssue.AuthorName = issue.User.Login
- }
return githubIssue, nil
}