velodrome/transform/plugins/author_logger_wrapper.go
func (a *AuthorLoggerPluginWrapper) ReceiveIssueEvent(event sql.IssueEvent) []Point {
	points := a.plugin.ReceiveIssueEvent(event)

	if a.enabled {
		for i := range points {
			if points[i].Values == nil {
				points[i].Values = map[string]interface{}{}
			}
			if event.Actor != nil {
				points[i].Values["author"] = *event.Actor
			}
		}
	}

	return points
}
func (a *AuthorLoggerPluginWrapper) ReceiveIssueEvent(event sql.IssueEvent) []Point {
	points := a.plugin.ReceiveIssueEvent(event)

	if a.enabled {
		for i := range points {
			if points[i].Values == nil {
				points[i].Values = map[string]interface{}{}
			}
			if event.Actor != nil {
				points[i].Values["author"] = *event.Actor
			}
		}
	}

	return points
}
func ( a * AuthorLoggerPluginWrapper ) ReceiveIssueEvent ( event sql . IssueEvent ) [ ] Point { points := a . plugin . ReceiveIssueEvent ( event ) if a . enabled { for i := range points { if points [ i ] . Values == nil { points [ i ] . Values = map [ string ] interface { } { } } if event . Actor != nil { points [ i ] . Values [ " " ] = * event . Actor } } } return points }
// ReceiveIssueEvent is a wrapper on plugin.ReceiveIssueEvent() logging the author
ReceiveIssueEvent is a wrapper on plugin . ReceiveIssueEvent () logging the author