This is an automated email from the ASF dual-hosted git repository.
abeizn 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 c64bd2d29 fix(github): ignore bot account (#7845)
c64bd2d29 is described below
commit c64bd2d29753828591fc04627c84765af6879be9
Author: Lynwee <[email protected]>
AuthorDate: Tue Aug 6 18:27:14 2024 +0800
fix(github): ignore bot account (#7845)
---
backend/plugins/github/tasks/pr_convertor.go | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/backend/plugins/github/tasks/pr_convertor.go
b/backend/plugins/github/tasks/pr_convertor.go
index 22365b79d..eeb1caa5d 100644
--- a/backend/plugins/github/tasks/pr_convertor.go
+++ b/backend/plugins/github/tasks/pr_convertor.go
@@ -88,6 +88,7 @@ func ConvertPullRequests(taskCtx plugin.SubTaskContext)
errors.Error {
OriginalStatus: pr.State,
Title: pr.Title,
Url: pr.Url,
+ AuthorId:
accountIdGen.Generate(data.Options.ConnectionId, pr.AuthorId),
AuthorName: pr.AuthorName,
Description: pr.Body,
CreatedDate: pr.GithubCreatedAt,
@@ -114,9 +115,6 @@ func ConvertPullRequests(taskCtx plugin.SubTaskContext)
errors.Error {
} else {
domainPr.Status = code.CLOSED
}
- if pr.AuthorId != 0 {
- domainPr.AuthorId =
accountIdGen.Generate(data.Options.ConnectionId, pr.AuthorId)
- }
return []interface{}{
domainPr,
}, nil