1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00

fix: use commit msg as PR title

This commit is contained in:
Carlos Alexandro Becker 2023-06-25 05:16:37 +00:00
parent 2eaefa94b1
commit e9b4bc05da
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
5 changed files with 5 additions and 10 deletions

View File

@ -180,12 +180,11 @@ func doPublish(ctx *context.Context, formula *artifact.Artifact, cl client.Clien
return err
}
title := fmt.Sprintf("Updated %s to %s", ctx.Config.ProjectName, ctx.Version)
return pcl.OpenPullRequest(ctx, client.Repo{
Name: brew.Repository.PullRequest.Base.Name,
Owner: brew.Repository.PullRequest.Base.Owner,
Branch: brew.Repository.PullRequest.Base.Branch,
}, repo, title, brew.Repository.PullRequest.Draft)
}, repo, msg, brew.Repository.PullRequest.Draft)
}
func doRun(ctx *context.Context, brew config.Homebrew, cl client.ReleaserURLTemplater) error {

View File

@ -363,12 +363,11 @@ func doPublish(ctx *context.Context, manifest *artifact.Artifact, cl client.Clie
return err
}
title := fmt.Sprintf("Updated %s to %s", ctx.Config.ProjectName, ctx.Version)
return pcl.OpenPullRequest(ctx, client.Repo{
Name: cfg.Repository.PullRequest.Base.Name,
Owner: cfg.Repository.PullRequest.Base.Owner,
Branch: cfg.Repository.PullRequest.Base.Branch,
}, repo, title, cfg.Repository.PullRequest.Draft)
}, repo, msg, cfg.Repository.PullRequest.Draft)
}
func buildManifestPath(folder, filename string) string {

View File

@ -371,12 +371,11 @@ func doPublish(ctx *context.Context, prefetcher shaPrefetcher, cl client.Client,
return err
}
title := fmt.Sprintf("Updated %s to %s", ctx.Config.ProjectName, ctx.Version)
return pcl.OpenPullRequest(ctx, client.Repo{
Name: nix.Repository.PullRequest.Base.Name,
Owner: nix.Repository.PullRequest.Base.Owner,
Branch: nix.Repository.PullRequest.Base.Branch,
}, repo, title, nix.Repository.PullRequest.Draft)
}, repo, msg, nix.Repository.PullRequest.Draft)
}
func doBuildPkg(ctx *context.Context, data templateData) (string, error) {

View File

@ -291,12 +291,11 @@ func doPublish(ctx *context.Context, manifest *artifact.Artifact, cl client.Clie
return err
}
title := fmt.Sprintf("Updated %s to %s", ctx.Config.ProjectName, ctx.Version)
return pcl.OpenPullRequest(ctx, client.Repo{
Name: scoop.Repository.PullRequest.Base.Name,
Owner: scoop.Repository.PullRequest.Base.Owner,
Branch: scoop.Repository.PullRequest.Base.Branch,
}, repo, title, scoop.Repository.PullRequest.Draft)
}, repo, commitMessage, scoop.Repository.PullRequest.Draft)
}
// Manifest represents a scoop.sh App Manifest.

View File

@ -403,12 +403,11 @@ func doPublish(ctx *context.Context, cl client.Client, wingets []*artifact.Artif
return fmt.Errorf("client does not support pull requests")
}
title := fmt.Sprintf("Updated %s to %s", ctx.Config.ProjectName, ctx.Version)
return pcl.OpenPullRequest(ctx, client.Repo{
Name: winget.Repository.PullRequest.Base.Name,
Owner: winget.Repository.PullRequest.Base.Owner,
Branch: winget.Repository.PullRequest.Base.Branch,
}, repo, title, winget.Repository.PullRequest.Draft)
}, repo, msg, winget.Repository.PullRequest.Draft)
}
func langserverLineFor(tp artifact.Type) string {