@@ -10,12 +10,12 @@ import (
1010type (
1111 IAppProxyGitIntegrationsAPI interface {
1212 List (ctx context.Context ) ([]model.GitIntegration , error )
13- Get (ctx context.Context , name string ) (* model.GitIntegration , error )
13+ Get (ctx context.Context , name * string ) (* model.GitIntegration , error )
1414 Add (ctx context.Context , args * model.AddGitIntegrationArgs ) (* model.GitIntegration , error )
1515 Edit (ctx context.Context , args * model.EditGitIntegrationArgs ) (* model.GitIntegration , error )
1616 Remove (ctx context.Context , name string ) error
1717 Register (ctx context.Context , args * model.RegisterToGitIntegrationArgs ) (* model.GitIntegration , error )
18- Deregister (ctx context.Context , name string ) (* model.GitIntegration , error )
18+ Deregister (ctx context.Context , name * string ) (* model.GitIntegration , error )
1919 }
2020
2121 gitIntegrations struct {
@@ -100,10 +100,10 @@ func (c *gitIntegrations) List(ctx context.Context) ([]model.GitIntegration, err
100100 return res .Data .GitIntegrations , nil
101101}
102102
103- func (c * gitIntegrations ) Get (ctx context.Context , name string ) (* model.GitIntegration , error ) {
103+ func (c * gitIntegrations ) Get (ctx context.Context , name * string ) (* model.GitIntegration , error ) {
104104 jsonData := map [string ]interface {}{
105105 "query" : `
106- query GetGitIntegration($name: String! ) {
106+ query GetGitIntegration($name: String) {
107107 gitIntegration(name: $name) {
108108 name
109109 sharingPolicy
@@ -254,10 +254,10 @@ func (c *gitIntegrations) Register(ctx context.Context, args *model.RegisterToGi
254254 return res .Data .RegisterToGitIntegration , nil
255255}
256256
257- func (c * gitIntegrations ) Deregister (ctx context.Context , name string ) (* model.GitIntegration , error ) {
257+ func (c * gitIntegrations ) Deregister (ctx context.Context , name * string ) (* model.GitIntegration , error ) {
258258 jsonData := map [string ]interface {}{
259259 "query" : `
260- mutation DeregisterToGitIntegration($name: String! ) {
260+ mutation DeregisterToGitIntegration($name: String) {
261261 deregisterFromGitIntegration(name: $name) {
262262 name
263263 sharingPolicy
0 commit comments