This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v1.0 by this push:
new 5af233a80 fix(github): ignore bot account (#7845) (#7846)
5af233a80 is described below
commit 5af233a809907e2a06d0b7aa41fc1a89e1b131ee
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Aug 6 18:27:50 2024 +0800
fix(github): ignore bot account (#7845) (#7846)
Co-authored-by: Lynwee <[email protected]>
---
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