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

abeizn pushed a commit to branch fix-github-field
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/fix-github-field by this push:
     new 9f1de99db fix: github repo id
9f1de99db is described below

commit 9f1de99db55c0e5ee86866aab517eb94bc732d42
Author: abeizn <[email protected]>
AuthorDate: Tue Oct 31 15:58:33 2023 +0800

    fix: github repo id
---
 backend/plugins/github_graphql/tasks/deployment_convertor.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/backend/plugins/github_graphql/tasks/deployment_convertor.go 
b/backend/plugins/github_graphql/tasks/deployment_convertor.go
index 60479dc90..051d08ac3 100644
--- a/backend/plugins/github_graphql/tasks/deployment_convertor.go
+++ b/backend/plugins/github_graphql/tasks/deployment_convertor.go
@@ -18,7 +18,6 @@ limitations under the License.
 package tasks
 
 import (
-       "fmt"
        "reflect"
 
        "github.com/apache/incubator-devlake/core/dal"
@@ -89,7 +88,7 @@ func ConvertDeployment(taskCtx plugin.SubTaskContext) 
errors.Error {
                                FinishedDate: &githubDeployment.UpdatedDate, // 
fixme there is no such field
                                CommitSha:    githubDeployment.CommitOid,
                                RefName:      githubDeployment.RefName,
-                               RepoId:       fmt.Sprintf("%d", 
githubDeployment.GithubId),
+                               RepoId:       
deploymentScopeIdGen.Generate(githubDeployment.ConnectionId, 
githubDeployment.GithubId),
                                RepoUrl:      githubDeployment.RepositoryUrl,
                        }
 

Reply via email to