Skip to content

Commit

Permalink
enhance: adding a branch field to scheduled builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Aug 22, 2023
1 parent 55e3d0e commit 03f8c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/schedule/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func CreateSchedule(c *gin.Context) {
s.SetUpdatedBy(u.GetName())

if input.GetBranch() == "" {
s.SetBranch(*r.Branch)
s.SetBranch(r.GetBranch())
} else {
s.SetBranch(input.GetBranch())
}
Expand Down

0 comments on commit 03f8c13

Please sign in to comment.