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

klesh pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v1.0 by this push:
     new 4589671b2 fix: github connection.enableGraphql should be default to 
true (#7711) (#7712)
4589671b2 is described below

commit 4589671b2bdf4f774ca45eb59072295b8d49e516
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jul 9 15:49:42 2024 +0800

    fix: github connection.enableGraphql should be default to true (#7711) 
(#7712)
    
    Co-authored-by: Klesh Wong <[email protected]>
---
 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