dmitri.shuralyov.com/app/changes/...

githubapi: Add support for review inline comments.
dmitshur committed 6 years ago commit e945c49ff346d1b3b2c63d733c795812f3c010b8
Collapse all
component/component.go
@@ -127,11 +127,11 @@ func (e Event) text() []*html.Node {
		ns = append(ns, htmlg.Strong(p.CommitID)) // TODO: Code{}, use CommitHTMLURL.
		ns = append(ns, htmlg.Text(" into "))
		ns = append(ns, htmlg.Strong(p.RefName)) // TODO: Code{}.
		return ns
	case changes.ApprovedEvent:
		return []*html.Node{htmlg.Text("approved these changes")}
		return []*html.Node{htmlg.Text("approved this change")}
	case changes.ChangesRequestedEvent:
		return []*html.Node{htmlg.Text("requested changes")}
	default:
		return []*html.Node{htmlg.Text("unknown event")} // TODO: See if this is optimal.
	}