Skip to content

Commit 6341fef

Browse files
committed
Add debricked integration parameter
1 parent 5e98413 commit 6341fef

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

pkg/upload/batch.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,12 @@ func (uploadBatch *uploadBatch) conclude() error {
149149
return NoFilesErr
150150
}
151151
body, err := json.Marshal(uploadConclusion{
152-
CiUploadId: strconv.Itoa(uploadBatch.ciUploadId),
153-
RepositoryName: uploadBatch.gitMetaObject.RepositoryName,
154-
IntegrationName: uploadBatch.integrationName,
155-
CommitName: uploadBatch.gitMetaObject.CommitName,
156-
Author: uploadBatch.gitMetaObject.Author,
152+
CiUploadId: strconv.Itoa(uploadBatch.ciUploadId),
153+
RepositoryName: uploadBatch.gitMetaObject.RepositoryName,
154+
IntegrationName: uploadBatch.integrationName,
155+
CommitName: uploadBatch.gitMetaObject.CommitName,
156+
Author: uploadBatch.gitMetaObject.Author,
157+
DebrickedIntegration: "cli",
157158
})
158159

159160
if err != nil {
@@ -252,11 +253,12 @@ type uploadedFile struct {
252253
}
253254

254255
type uploadConclusion struct {
255-
CiUploadId string `json:"ciUploadId"`
256-
RepositoryName string `json:"repositoryName"`
257-
IntegrationName string `json:"integrationName"`
258-
CommitName string `json:"commitName"`
259-
Author string `json:"author"`
256+
CiUploadId string `json:"ciUploadId"`
257+
RepositoryName string `json:"repositoryName"`
258+
IntegrationName string `json:"integrationName"`
259+
CommitName string `json:"commitName"`
260+
Author string `json:"author"`
261+
DebrickedIntegration string `json:"debrickedIntegration"`
260262
}
261263

262264
func getRelativeFilePath(filePath string) string {

0 commit comments

Comments
 (0)