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 ef122bb6e fix(github): update resp when testing existed connections 
(#6707)
ef122bb6e is described below

commit ef122bb6ef53bbeb8a68cbaf7dcc0a6b8a4114f0
Author: Lynwee <[email protected]>
AuthorDate: Fri Dec 29 17:43:27 2023 +0800

    fix(github): update resp when testing existed connections (#6707)
---
 backend/plugins/github/api/connection_api.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backend/plugins/github/api/connection_api.go 
b/backend/plugins/github/api/connection_api.go
index 77aa985e5..2b9e9f98d 100644
--- a/backend/plugins/github/api/connection_api.go
+++ b/backend/plugins/github/api/connection_api.go
@@ -348,6 +348,10 @@ func testExistingConnection(ctx context.Context, conn 
models.GithubConn) (*Githu
                                return nil, errors.Convert(err)
                        } else {
                                githubApiResponse.Tokens = 
append(githubApiResponse.Tokens, tokenTestResult)
+                               if tokenTestResult.Success {
+                                       githubApiResponse.Success = 
tokenTestResult.Success
+                                       githubApiResponse.Message = 
tokenTestResult.Message
+                               }
                        }
                }
        } else {

Reply via email to