Skip to content

Commit

Permalink
Change ReviewInput to use map[string]int for labels (#159)
Browse files Browse the repository at this point in the history
* Change ReviewInput to use map[string]int for labels

The example provided at:

https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#set-review

uses ints for the label values, not strings.  This change lines
ReviewInput up with that example.

* Fix formatting
  • Loading branch information
kellyma2 authored Mar 27, 2024
1 parent 6478d30 commit b85f9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ type ReviewerInput struct {
type ReviewInput struct {
Message string `json:"message,omitempty"`
Tag string `json:"tag,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Labels map[string]int `json:"labels,omitempty"`
Comments map[string][]CommentInput `json:"comments,omitempty"`
RobotComments map[string][]RobotCommentInput `json:"robot_comments,omitempty"`
StrictLabels bool `json:"strict_labels,omitempty"`
Expand Down

0 comments on commit b85f9f5

Please sign in to comment.