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 e1cdd3cd8 fix: github connection.enableGraphql should be default to 
true (#7711)
e1cdd3cd8 is described below

commit e1cdd3cd82f14dc9e3df2d4a3a4d988b950947ac
Author: Klesh Wong <[email protected]>
AuthorDate: Tue Jul 9 15:45:05 2024 +0800

    fix: github connection.enableGraphql should be default to true (#7711)
---
 backend/plugins/github/api/connection_api.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/backend/plugins/github/api/connection_api.go 
b/backend/plugins/github/api/connection_api.go
index 570125d29..a5f0e922d 100644
--- a/backend/plugins/github/api/connection_api.go
+++ b/backend/plugins/github/api/connection_api.go
@@ -92,6 +92,9 @@ func TestConnection(input *plugin.ApiResourceInput) 
(*plugin.ApiResourceOutput,
 // @Failure 500  {string} errcode.Error "Internal Error"
 // @Router /plugins/github/connections [POST]
 func PostConnections(input *plugin.ApiResourceInput) 
(*plugin.ApiResourceOutput, errors.Error) {
+       if _, ok := input.Body["enableGraphql"]; !ok {
+               input.Body["enableGraphql"] = true
+       }
        return dsHelper.ConnApi.Post(input)
 }
 

Reply via email to