This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new b659db85 fix(github): add scope for job collector
b659db85 is described below
commit b659db855a55203b3fd700aa41f17ab131f45a1b
Author: Yingchu Chen <[email protected]>
AuthorDate: Sun Sep 25 21:35:20 2022 +0800
fix(github): add scope for job collector
closes #3182
---
plugins/github/tasks/cicd_job_collector.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/github/tasks/cicd_job_collector.go
b/plugins/github/tasks/cicd_job_collector.go
index 407d3dd3..aa17b170 100644
--- a/plugins/github/tasks/cicd_job_collector.go
+++ b/plugins/github/tasks/cicd_job_collector.go
@@ -47,6 +47,7 @@ func CollectJobs(taskCtx core.SubTaskContext) errors.Error {
cursor, err := db.Cursor(
dal.Select("id"),
dal.From(models.GithubRun{}.TableName()),
+ dal.Where("repo_id = ?", data.Repo.GithubId),
)
if err != nil {
return err