Skip to content

Commit ff41749

Browse files
fix(github): process bot account in pull_requests table (#7786) (#7787)
Co-authored-by: Lynwee <1507509064@qq.com>
1 parent 8f80d3b commit ff41749

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/plugins/github/tasks/pr_convertor.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ func ConvertPullRequests(taskCtx plugin.SubTaskContext) errors.Error {
8888
OriginalStatus: pr.State,
8989
Title: pr.Title,
9090
Url: pr.Url,
91-
AuthorId: accountIdGen.Generate(data.Options.ConnectionId, pr.AuthorId),
9291
AuthorName: pr.AuthorName,
9392
Description: pr.Body,
9493
CreatedDate: pr.GithubCreatedAt,
@@ -115,6 +114,9 @@ func ConvertPullRequests(taskCtx plugin.SubTaskContext) errors.Error {
115114
} else {
116115
domainPr.Status = code.CLOSED
117116
}
117+
if pr.AuthorId != 0 {
118+
domainPr.AuthorId = accountIdGen.Generate(data.Options.ConnectionId, pr.AuthorId)
119+
}
118120
return []interface{}{
119121
domainPr,
120122
}, nil

0 commit comments

Comments
 (0)