Skip to content

Commit

Permalink
feat: pr title specific target
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Jun 20, 2024
1 parent a19c003 commit 746bf1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,11 @@ const (
)

func getGenPRTitle() string {
return speakeasyGenPRTitle + environment.GetWorkflowName()
title := speakeasyGenPRTitle + environment.GetWorkflowName()
if environment.SpecifiedTarget() != "" && !strings.Contains(title, strings.ToUpper(environment.SpecifiedTarget())) {
title += " " + strings.ToUpper(environment.SpecifiedTarget())
}
return title
}

func getGenSourcesTitle() string {
Expand Down

0 comments on commit 746bf1c

Please sign in to comment.