Skip to content

Commit 362c35f

Browse files
touchup
1 parent 683c3d8 commit 362c35f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pkg/codefresh/cli_releases.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ type (
1616
codefresh *codefresh
1717
}
1818

19-
graphQlGetReleasesResponse struct {
19+
graphQlGetLatestReleaseResponse struct {
2020
Data struct {
2121
LatestCliRelease model.Release
2222
}
2323
Errors []graphqlError
2424
}
2525
)
2626

27-
func newCliReleaseAPI(codefresh *codefresh) ICliReleasesAPI {
27+
func newCliReleasesAPI(codefresh *codefresh) ICliReleasesAPI {
2828
return &CliReleases{codefresh: codefresh}
2929
}
3030

@@ -37,7 +37,7 @@ func (releases *CliReleases) GetLatest(ctx context.Context) (*model.Release, err
3737
}`,
3838
}
3939

40-
res := graphQlGetReleasesResponse{}
40+
res := graphQlGetLatestReleaseResponse{}
4141
err := releases.codefresh.graphqlAPI(ctx, jsonData, &res)
4242
if err != nil {
4343
return nil, fmt.Errorf("failed making a graphql API call to runtime: %w", err)

pkg/codefresh/codefresh.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ type (
3939
Workflow() IWorkflowV2API
4040
Pipeline() IPipelineV2API
4141
CliReleases() ICliReleasesAPI
42-
4342
}
4443
)
4544

@@ -121,7 +120,7 @@ func (c *codefresh) Pipeline() IPipelineV2API {
121120
}
122121

123122
func (c *codefresh) CliReleases() ICliReleasesAPI {
124-
return newCliReleaseAPI(c)
123+
return newCliReleasesAPI(c)
125124
}
126125

127126
func (c *codefresh) requestAPI(opt *requestOptions) (*http.Response, error) {

0 commit comments

Comments
 (0)