Skip to content

Commit

Permalink
Add debricked integration parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
viktigpetterr committed Feb 2, 2023
1 parent 5e98413 commit 6341fef
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions pkg/upload/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,12 @@ func (uploadBatch *uploadBatch) conclude() error {
return NoFilesErr
}
body, err := json.Marshal(uploadConclusion{
CiUploadId: strconv.Itoa(uploadBatch.ciUploadId),
RepositoryName: uploadBatch.gitMetaObject.RepositoryName,
IntegrationName: uploadBatch.integrationName,
CommitName: uploadBatch.gitMetaObject.CommitName,
Author: uploadBatch.gitMetaObject.Author,
CiUploadId: strconv.Itoa(uploadBatch.ciUploadId),
RepositoryName: uploadBatch.gitMetaObject.RepositoryName,
IntegrationName: uploadBatch.integrationName,
CommitName: uploadBatch.gitMetaObject.CommitName,
Author: uploadBatch.gitMetaObject.Author,
DebrickedIntegration: "cli",
})

if err != nil {
Expand Down Expand Up @@ -252,11 +253,12 @@ type uploadedFile struct {
}

type uploadConclusion struct {
CiUploadId string `json:"ciUploadId"`
RepositoryName string `json:"repositoryName"`
IntegrationName string `json:"integrationName"`
CommitName string `json:"commitName"`
Author string `json:"author"`
CiUploadId string `json:"ciUploadId"`
RepositoryName string `json:"repositoryName"`
IntegrationName string `json:"integrationName"`
CommitName string `json:"commitName"`
Author string `json:"author"`
DebrickedIntegration string `json:"debrickedIntegration"`
}

func getRelativeFilePath(filePath string) string {
Expand Down

0 comments on commit 6341fef

Please sign in to comment.