Skip to content

Commit

Permalink
fix(core/faker): wrong gitlab label in faker
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdidierlaurent committed Jun 1, 2020
1 parent 8dc2b6f commit a3512df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitorables/gitlab/api/usecase/gitlab_faker.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (gu *gitlabUsecase) Issues(params *models.IssuesParams) (*coreModels.Tile,

func (gu *gitlabUsecase) Pipeline(params *models.PipelineParams) (tile *coreModels.Tile, err error) {
tile = coreModels.NewTile(api.GitlabPipelineTileType).WithBuild()
tile.Label = fmt.Sprintf("%d", params.ProjectID)
tile.Label = fmt.Sprintf("Project %d name", *params.ProjectID)

projectID := fmt.Sprintf("%d-%s", params.ProjectID, params.Ref)
tile.Status = nonempty.Struct(params.Status, gu.computeStatus(projectID)).(coreModels.TileStatus)
Expand Down Expand Up @@ -97,7 +97,7 @@ func (gu *gitlabUsecase) Pipeline(params *models.PipelineParams) (tile *coreMode

func (gu *gitlabUsecase) MergeRequest(params *models.MergeRequestParams) (tile *coreModels.Tile, err error) {
tile = coreModels.NewTile(api.GitlabMergeRequestTileType).WithBuild()
tile.Label = fmt.Sprintf("%d", params.ProjectID)
tile.Label = fmt.Sprintf("Project %d name", *params.ProjectID)

projectID := fmt.Sprintf("%d-%d", params.ProjectID, params.ID)
tile.Status = nonempty.Struct(params.Status, gu.computeStatus(projectID)).(coreModels.TileStatus)
Expand Down

0 comments on commit a3512df

Please sign in to comment.