Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix source-control-url with buf plugin push #3571

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- Fix `buf plugin push --label` to allow pushing a plugin with a label.
- Add `--digest-changes-only` flag to `buf registry {module,plugin} commit list` to filter
out commits that have no digest changes.
- Fix `buf plugin push --source-control-url` to allow pushing a plugin with the source
control url.

## [v1.48.0] - 2024-12-19

Expand Down
3 changes: 3 additions & 0 deletions private/buf/cmd/buf/command/plugin/pluginpush/pluginpush.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ func upload(
if len(flags.Labels) > 0 {
options = append(options, bufplugin.UploadWithLabels(flags.Labels...))
}
if flags.SourceControlURL != "" {
options = append(options, bufplugin.UploadWithSourceControlURL(flags.SourceControlURL))
}
commits, err := uploader.Upload(ctx, []bufplugin.Plugin{plugin}, options...)
if err != nil {
return nil, err
Expand Down
Loading