likyh commented on code in PR #3892:
URL: 
https://github.com/apache/incubator-devlake/pull/3892#discussion_r1044145451


##########
plugins/github/impl/impl.go:
##########
@@ -159,6 +161,32 @@ func (plugin Github) PrepareTaskData(taskCtx 
core.TaskContext, options map[strin
        if err != nil {
                return nil, errors.Default.Wrap(err, "unable to get github 
connection by the given connection ID")
        }
+       var githubRepo models.GithubRepo
+       // for advanced mode which we already set value to onwer/repo
+       if op.Owner != "" && op.Repo != "" {
+               err = taskCtx.GetDal().First(&githubRepo, dal.Where(
+                       "connection_id = ? AND name = ? AND owner_login = ",

Review Comment:
   it should be "owner_login = ?"



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to