dmitri.shuralyov.com/app/changes

update to use state.Review instead of change.ReviewState

Follows https://dmitri.shuralyov.com/service/change$commit/59022927fa7dea491c7a54393aec92ee4896717c.
dmitshur committed 5 years ago commit 036c35ce260fdecabbe5bb72c1976500848f984a
Showing partial commit. Full Commit
Collapse all
main.go
@@ -19,10 +19,11 @@ import (

	"dmitri.shuralyov.com/app/changes/assets"
	"dmitri.shuralyov.com/app/changes/common"
	"dmitri.shuralyov.com/app/changes/component"
	"dmitri.shuralyov.com/service/change"
	statepkg "dmitri.shuralyov.com/state"
	"github.com/dustin/go-humanize"
	"github.com/shurcooL/github_flavored_markdown"
	"github.com/shurcooL/htmlg"
	"github.com/shurcooL/httperror"
	"github.com/shurcooL/httpfs/html/vfstemplate"
@@ -325,11 +326,11 @@ func (h *handler) MockHandler(w http.ResponseWriter, req *http.Request) error {
		Review: change.Review{
			ID:        "0",
			User:      users.User{Login: "Eric Grosse", AvatarURL: "https://lh6.googleusercontent.com/-_sdEtv2PRxk/AAAAAAAAAAI/AAAAAAAAAAA/aE1Q66Cuvb4/s100-p/photo.jpg"},
			CreatedAt: time.Now().UTC(),
			Edited:    nil,
			State:     change.Approved,
			State:     statepkg.ReviewPlus2,
			Body:      "",
			Reactions: []reactions.Reaction{},
			Editable:  true,
			Comments: []change.InlineComment{
				{