| 116 | } |
| 117 | |
| 118 | func updateGithubCredentials(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, credentialsID int64, credentialsParams params.UpdateGithubCredentialsParams) (*params.ForgeCredentials, error) { |
| 119 | updateCredentialsResponse, err := apiCli.Credentials.UpdateCredentials( |
| 120 | clientCredentials.NewUpdateCredentialsParams().WithID(credentialsID).WithBody(credentialsParams), |
| 121 | apiAuthToken) |
| 122 | if err != nil { |
| 123 | return nil, err |
| 124 | } |
| 125 | return &updateCredentialsResponse.Payload, nil |
| 126 | } |
| 127 | |
| 128 | func createGithubEndpoint(apiCli *client.GarmAPI, apiAuthToken runtime.ClientAuthInfoWriter, endpointParams params.CreateGithubEndpointParams) (*params.ForgeEndpoint, error) { |
| 129 | createEndpointResponse, err := apiCli.Endpoints.CreateGithubEndpoint( |