@@ -10,12 +10,12 @@ import (
10
10
type (
11
11
IAppProxyGitIntegrationsAPI interface {
12
12
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 )
14
14
Add (ctx context.Context , args * model.AddGitIntegrationArgs ) (* model.GitIntegration , error )
15
15
Edit (ctx context.Context , args * model.EditGitIntegrationArgs ) (* model.GitIntegration , error )
16
16
Remove (ctx context.Context , name string ) error
17
17
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 )
19
19
}
20
20
21
21
gitIntegrations struct {
@@ -100,10 +100,10 @@ func (c *gitIntegrations) List(ctx context.Context) ([]model.GitIntegration, err
100
100
return res .Data .GitIntegrations , nil
101
101
}
102
102
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 ) {
104
104
jsonData := map [string ]interface {}{
105
105
"query" : `
106
- query GetGitIntegration($name: String! ) {
106
+ query GetGitIntegration($name: String) {
107
107
gitIntegration(name: $name) {
108
108
name
109
109
sharingPolicy
@@ -254,10 +254,10 @@ func (c *gitIntegrations) Register(ctx context.Context, args *model.RegisterToGi
254
254
return res .Data .RegisterToGitIntegration , nil
255
255
}
256
256
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 ) {
258
258
jsonData := map [string ]interface {}{
259
259
"query" : `
260
- mutation DeregisterToGitIntegration($name: String! ) {
260
+ mutation DeregisterToGitIntegration($name: String) {
261
261
deregisterFromGitIntegration(name: $name) {
262
262
name
263
263
sharingPolicy
0 commit comments