velodrome/fetcher/conversion.go
func NewIssueComment(issueID int, gComment *github.IssueComment, repository string) (*sql.Comment, error) {
	if gComment.ID == nil ||
		gComment.Body == nil ||
		gComment.CreatedAt == nil ||
		gComment.UpdatedAt == nil {
		return nil, fmt.Errorf("IssueComment is missing mandatory field: %s", gComment)
	}

	var login string
	if gComment.User != nil && gComment.User.Login != nil {
		login = *gComment.User.Login
	}

	return &sql.Comment{
		ID:               itoa(*gComment.ID),
		IssueID:          strconv.Itoa(issueID),
		Body:             *gComment.Body,
		User:             login,
		CommentCreatedAt: *gComment.CreatedAt,
		CommentUpdatedAt: *gComment.UpdatedAt,
		PullRequest:      false,
		Repository:       strings.ToLower(repository),
	}, nil
}
func NewIssueComment(issueID int, gComment *github.IssueComment, repository string) (*sql.Comment, error) {
	if gComment.ID == nil ||
		gComment.Body == nil ||
		gComment.CreatedAt == nil ||
		gComment.UpdatedAt == nil {
		return nil, fmt.Errorf("IssueComment is missing mandatory field: %s", gComment)
	}

	var login string
	if gComment.User != nil && gComment.User.Login != nil {
		login = *gComment.User.Login
	}

	return &sql.Comment{
		ID:               itoa(*gComment.ID),
		IssueID:          strconv.Itoa(issueID),
		Body:             *gComment.Body,
		User:             login,
		CommentCreatedAt: *gComment.CreatedAt,
		CommentUpdatedAt: *gComment.UpdatedAt,
		PullRequest:      false,
		Repository:       strings.ToLower(repository),
	}, nil
}
// NewIssueComment creates a Comment from a github.IssueComment