dmitri.shuralyov.com/service/change

remove ApprovedEvent, ChangesRequestedEvent

These events have been superseded by Review and its State field.
dmitshur committed 5 years ago commit 9a7a6e8aef50bf7dceb93c681ed6446f3fdfa0b0
Showing partial commit. Full Commit
Collapse all
timeline.go
@@ -61,11 +61,11 @@ type TimelineItem struct {
	ID        string // TODO: See if this belongs here.
	Actor     users.User
	CreatedAt time.Time

	// Payload specifies the event type. It's one of:
	// ClosedEvent, ReopenedEvent, ..., MergedEvent, ApprovedEvent.
	// ClosedEvent, ReopenedEvent, ..., MergedEvent, DeletedEvent.
	Payload interface{}
}

type (
	// ClosedEvent is when a change is closed.
@@ -109,10 +109,6 @@ type (
	// THINK: Merge with "github.com/shurcooL/events/event".Delete?
	DeletedEvent struct {
		Type string // "branch", "comment".
		Name string
	}

	// TODO: Remove, now that these have been merged into Review.
	ApprovedEvent         struct{}
	ChangesRequestedEvent struct{}
)