Skip to content

Commit d50f9b5

Browse files
author
Valentin Lemaire
committed
Added param to fetch artifact accessories when getting an artifact.
1 parent 2bf7f02 commit d50f9b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apiv2/pkg/clients/artifact/artifact.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ func (c *RESTClient) GetArtifact(ctx context.Context, projectName, repositoryNam
165165
params.WithReference(reference)
166166
params.WithContext(ctx)
167167
params.WithWithLabel(util.BoolPtr(true))
168+
params.WithWithAccessory(util.BoolPtr(true))
168169

169170
resp, err := c.V2Client.Artifact.GetArtifact(params, c.AuthInfo)
170171
if err != nil {

apiv2/pkg/clients/artifact/artifact_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ func TestRESTClient_GetArtifact(t *testing.T) {
225225
getParams.WithReference(reference)
226226
getParams.WithContext(ctx)
227227
getParams.WithWithLabel(util.BoolPtr(true))
228+
getParams.WithWithAccessory(util.BoolPtr(true))
228229

229230
getParams.WithTimeout(apiClient.Options.Timeout)
230231

0 commit comments

Comments
 (0)