warren830 commented on code in PR #3892:
URL:
https://github.com/apache/incubator-devlake/pull/3892#discussion_r1044166565
##########
plugins/github_graphql/impl/impl.go:
##########
@@ -137,6 +133,41 @@ func (plugin GithubGraphql) PrepareTaskData(taskCtx
core.TaskContext, options ma
return nil, errors.Default.Wrap(err, "unable to get github
connection by the given connection ID: %v")
}
+ var githubRepo models.GithubRepo
+ // for advanced mode or others 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:
fixed
##########
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:
fixed
--
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]