You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2022/08/11 06:51:22 UTC

[incubator-devlake] branch main updated: fix: github/gitlab should pass down proxy setting to gitext

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 200a666e fix: github/gitlab should pass down proxy setting to gitext
200a666e is described below

commit 200a666e2297fd2240afb6d0fedec37dff5abece
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Thu Aug 11 12:12:10 2022 +0800

    fix: github/gitlab should pass down proxy setting to gitext
---
 plugins/github/api/blueprint.go | 1 +
 plugins/gitlab/api/blueprint.go | 1 +
 2 files changed, 2 insertions(+)

diff --git a/plugins/github/api/blueprint.go b/plugins/github/api/blueprint.go
index 204b6c83..a181f527 100644
--- a/plugins/github/api/blueprint.go
+++ b/plugins/github/api/blueprint.go
@@ -142,6 +142,7 @@ func MakePipelinePlan(subtaskMetas []core.SubTaskMeta, connectionId uint64, scop
 				Options: map[string]interface{}{
 					"url":    cloneUrl.String(),
 					"repoId": didgen.NewDomainIdGenerator(&models.GithubRepo{}).Generate(connectionId, apiRepo.GithubId),
+					"proxy":  connection.Proxy,
 				},
 			})
 		}
diff --git a/plugins/gitlab/api/blueprint.go b/plugins/gitlab/api/blueprint.go
index 0e361e0b..d328bd7e 100644
--- a/plugins/gitlab/api/blueprint.go
+++ b/plugins/gitlab/api/blueprint.go
@@ -142,6 +142,7 @@ func MakePipelinePlan(subtaskMetas []core.SubTaskMeta, connectionId uint64, scop
 				Options: map[string]interface{}{
 					"url":    cloneUrl.String(),
 					"repoId": didgen.NewDomainIdGenerator(&models.GitlabProject{}).Generate(connectionId, apiRepo.GitlabId),
+					"proxy":  connection.Proxy,
 				},
 			})
 			// TODO, add refdiff in the future