This is an automated email from the ASF dual-hosted git repository.

zhangliang2022 pushed a commit to branch release-v0.12
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit a4ef3a7be85f12241fc77d7f7ac93b5b26f3d19a
Author: zhangliang <[email protected]>
AuthorDate: Mon Aug 1 20:49:01 2022 +0800

    fix: fix github.ExtractApiEvents panic
---
 plugins/github/tasks/event_extractor.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/github/tasks/event_extractor.go 
b/plugins/github/tasks/event_extractor.go
index c3fd6e69..8d87c2db 100644
--- a/plugins/github/tasks/event_extractor.go
+++ b/plugins/github/tasks/event_extractor.go
@@ -63,7 +63,7 @@ func ExtractApiEvents(taskCtx core.SubTaskContext) error {
                                return nil, err
                        }
                        results := make([]interface{}, 0, 1)
-                       if body.GithubId == 0 {
+                       if body.GithubId == 0 || body.Actor == nil {
                                return nil, nil
                        }
                        githubIssueEvent, err := convertGithubEvent(body, 
data.Options.ConnectionId)

Reply via email to