diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index 50df397..d9d4126 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -95,6 +95,14 @@ func main() { } } + if cfg.PullRequestBody == "" { + cfg.PullRequestBody = DefaultPullRequestBody + } + + if cfg.PullRequestTitle == "" { + cfg.PullRequestTitle = DefaultPullRequestTitle + } + path := "." if len(os.Args) > 1 { path = os.Args[1] @@ -185,7 +193,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules. wTitle := bytes.NewBuffer(nil) - tplBody, err := template.New("pull_request_title").Parse(cfg.PullRequestBody) + tplBody, err := template.New("pull_request_body").Parse(cfg.PullRequestBody) if err != nil { logger.Fatalf(ctx, "failed to parse template: %v", err) }