Skip to content

Commit

Permalink
Merge pull request #12 from blue-luke/project-id-not-name
Browse files Browse the repository at this point in the history
feat: tidying logging
  • Loading branch information
dabasvibhor authored Sep 10, 2024
2 parents a94914f + 8bf3c89 commit df9fd5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cmd/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ var Trigger = &cobra.Command{
foundBranch := false
errName := project.Name
if errName == "" {
errName = string(project.ID)
var idStr, serviceNameStr string

if project.ID != -1 {
idStr = fmt.Sprintf("%v", project.ID)
}

if project.ServiceName != "" {
serviceNameStr = project.ServiceName
}

errName = fmt.Sprintf("Project ID: %s, ServiceName: %s", idStr, serviceNameStr)
}
for _, lookup := range searchBranches {
err = project.SetBranch(lookup)
Expand Down
Empty file modified main.go
100644 → 100755
Empty file.

0 comments on commit df9fd5b

Please sign in to comment.