diff --git a/CHANGELOG.md b/CHANGELOG.md index 9637149638..78bb2f0b64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/private/buf/cmd/buf/command/plugin/pluginpush/pluginpush.go b/private/buf/cmd/buf/command/plugin/pluginpush/pluginpush.go index 1a4dab235c..061eef456f 100644 --- a/private/buf/cmd/buf/command/plugin/pluginpush/pluginpush.go +++ b/private/buf/cmd/buf/command/plugin/pluginpush/pluginpush.go @@ -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