Skip to content

Commit

Permalink
Fix source-control-url with buf plugin push
Browse files Browse the repository at this point in the history
This fixes the command `buf plugin push` flag `--source-control-url` to
allow setting parameter.
  • Loading branch information
emcfarlane committed Jan 2, 2025
1 parent 11aa018 commit ae2cd16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit ae2cd16

Please sign in to comment.