From 03f8c13d31367fd68fa742519e91f799ca23cfa7 Mon Sep 17 00:00:00 2001 From: "Claire.Nicholas" Date: Tue, 22 Aug 2023 10:42:58 -0500 Subject: [PATCH] enhance: adding a branch field to scheduled builds --- api/schedule/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/schedule/create.go b/api/schedule/create.go index dc83de0ee..667eb3ca9 100644 --- a/api/schedule/create.go +++ b/api/schedule/create.go @@ -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()) }