velodrome/fetcher/issue-events.go
func UpdateIssueEvents(issueID int, db *gorm.DB, client ClientInterface) {
	latest, err := findLatestEvent(issueID, db, client.RepositoryName())
	if err != nil {
		glog.Error("Failed to find last event: ", err)
		return
	}
	c := make(chan *github.IssueEvent, 500)

	go client.FetchIssueEvents(issueID, latest, c)
	for event := range c {
		eventOrm, err := NewIssueEvent(event, issueID, client.RepositoryName())
		if err != nil {
			glog.Error("Failed to create issue-event", err)
		}
		db.Create(eventOrm)
	}
}
func UpdateIssueEvents(issueID int, db *gorm.DB, client ClientInterface) {
	latest, err := findLatestEvent(issueID, db, client.RepositoryName())
	if err != nil {
		glog.Error("Failed to find last event: ", err)
		return
	}
	c := make(chan *github.IssueEvent, 500)

	go client.FetchIssueEvents(issueID, latest, c)
	for event := range c {
		eventOrm, err := NewIssueEvent(event, issueID, client.RepositoryName())
		if err != nil {
			glog.Error("Failed to create issue-event", err)
		}
		db.Create(eventOrm)
	}
}
// UpdateIssueEvents fetches all events until we find the most recent we
// have in db, and saves everything in database