velodrome/transform/plugins/fake_open_wrapper.go
func (o *FakeOpenPluginWrapper) ReceiveIssue(issue sql.Issue) []Point {
	if _, ok := o.alreadyOpen[issue.ID]; !ok {
		// Create/Add fake "opened" events
		heap.Push(&o.openEvents, sql.IssueEvent{
			Event:          "opened",
			IssueID:        issue.ID,
			Actor:          &issue.User,
			EventCreatedAt: issue.IssueCreatedAt,
		})
		o.alreadyOpen[issue.ID] = true
	}

	return o.plugin.ReceiveIssue(issue)
}
func (o *FakeOpenPluginWrapper) ReceiveIssue(issue sql.Issue) []Point {
	if _, ok := o.alreadyOpen[issue.ID]; !ok {
		// Create/Add fake "opened" events
		heap.Push(&o.openEvents, sql.IssueEvent{
			Event:          "opened",
			IssueID:        issue.ID,
			Actor:          &issue.User,
			EventCreatedAt: issue.IssueCreatedAt,
		})
		o.alreadyOpen[issue.ID] = true
	}

	return o.plugin.ReceiveIssue(issue)
}
// ReceiveIssue creates a fake "opened" event