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

klesh 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 a3c108a96 fix(github): keep repoId (#4888)
a3c108a96 is described below

commit a3c108a96ded17f321098c924ca0329fefb2fb71
Author: Warren Chen <[email protected]>
AuthorDate: Mon Apr 10 17:44:37 2023 +0800

    fix(github): keep repoId (#4888)
---
 .../e2e/snapshot_tables/cicd_pipeline_commits.csv  | 40 +++++++++++-----------
 backend/plugins/github/tasks/cicd_run_convertor.go |  1 +
 2 files changed, 21 insertions(+), 20 deletions(-)

diff --git 
a/backend/plugins/github/e2e/snapshot_tables/cicd_pipeline_commits.csv 
b/backend/plugins/github/e2e/snapshot_tables/cicd_pipeline_commits.csv
index 11f8baca7..ae412e744 100644
--- a/backend/plugins/github/e2e/snapshot_tables/cicd_pipeline_commits.csv
+++ b/backend/plugins/github/e2e/snapshot_tables/cicd_pipeline_commits.csv
@@ -1,21 +1,21 @@
 pipeline_id,commit_sha,branch,repo_id,repo_url
-github:GithubRun:1:134018330:2559400712,5dd23ddff8621e6ae36eb24b20d4c4a06dd73dc9,Fix_rm_redundancy_code,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2559400713,5dd23ddff8621e6ae36eb24b20d4c4a06dd73dc9,Fix_rm_redundancy_code,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2559400714,5dd23ddff8621e6ae36eb24b20d4c4a06dd73dc9,Fix_rm_redundancy_code,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2559507315,f85611741eb1f5451697ac589008d28f240887fc,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2566218975,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2566218976,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2566218977,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2589885628,fa938334e73faf88a15b59622ab1da61a643c5da,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2589885635,fa938334e73faf88a15b59622ab1da61a643c5da,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2589885639,fa938334e73faf88a15b59622ab1da61a643c5da,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2600408985,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2639945362,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2680721264,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2722539966,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2764660507,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2807709308,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2850801364,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2893573709,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2938072864,06e6934c35c336b1a2bd3005fb21dc3914a45747,master,,https://github.com/panjf2000/ants
-github:GithubRun:1:134018330:2983238245,06e6934c35c336b1a2bd3005fb21dc3914a45747,master,,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2559400712,5dd23ddff8621e6ae36eb24b20d4c4a06dd73dc9,Fix_rm_redundancy_code,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2559400713,5dd23ddff8621e6ae36eb24b20d4c4a06dd73dc9,Fix_rm_redundancy_code,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2559400714,5dd23ddff8621e6ae36eb24b20d4c4a06dd73dc9,Fix_rm_redundancy_code,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2559507315,f85611741eb1f5451697ac589008d28f240887fc,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2566218975,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2566218976,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2566218977,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2589885628,fa938334e73faf88a15b59622ab1da61a643c5da,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2589885635,fa938334e73faf88a15b59622ab1da61a643c5da,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2589885639,fa938334e73faf88a15b59622ab1da61a643c5da,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2600408985,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2639945362,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2680721264,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2722539966,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2764660507,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2807709308,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2850801364,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2893573709,32664cb1408f8d9ffa7236335025a4cd94a306ce,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2938072864,06e6934c35c336b1a2bd3005fb21dc3914a45747,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
+github:GithubRun:1:134018330:2983238245,06e6934c35c336b1a2bd3005fb21dc3914a45747,master,github:GithubRepo:1:134018330,https://github.com/panjf2000/ants
diff --git a/backend/plugins/github/tasks/cicd_run_convertor.go 
b/backend/plugins/github/tasks/cicd_run_convertor.go
index 25b9a9bdb..b67e75eff 100644
--- a/backend/plugins/github/tasks/cicd_run_convertor.go
+++ b/backend/plugins/github/tasks/cicd_run_convertor.go
@@ -105,6 +105,7 @@ func ConvertRuns(taskCtx plugin.SubTaskContext) 
errors.Error {
                                        data.Options.ConnectionId, line.RepoId, 
line.ID),
                                CommitSha: line.HeadSha,
                                Branch:    line.HeadBranch,
+                               RepoId:    
repoIdGen.Generate(data.Options.ConnectionId, repoId),
                                RepoUrl:   repo.HTMLUrl,
                        }
 

Reply via email to