Adding LastReviewedCommit

This commit is contained in:
gfleury 2020-03-18 11:05:55 -03:00
parent 691c6b2c37
commit 254a11e522
2 changed files with 9 additions and 7 deletions

View File

@ -105,10 +105,11 @@ type User struct {
}
type UserWithMetadata struct {
User UserWithLinks `json:"user,omitempty"`
Role string `json:"role,omitempty"`
Approved bool `json:"approved,omitempty"`
Status string `json:"status,omitempty"`
User UserWithLinks `json:"user,omitempty"`
Role string `json:"role,omitempty"`
Approved bool `json:"approved,omitempty"`
Status string `json:"status,omitempty"`
LastReviewedCommit string `json:"lastReviewedCommit,omitempty"`
}
// PermissionGlobal are global permissions

View File

@ -453,9 +453,10 @@ func TestGetPullRequestResponse(t *testing.T) {
Slug: "jcitizen",
Type: "NORMAL",
},
Role: "REVIEWER",
Approved: true,
Status: "APPROVED",
Role: "REVIEWER",
Approved: true,
Status: "APPROVED",
LastReviewedCommit: "7549846524f8aed2bd1c0249993ae1bf9d3c9998",
},
},
Participants: []UserWithMetadata{