func newLabels(issueID int, gLabels []github.Label, repository string) ([]sql.Label, error) {
	labels := []sql.Label{}
	repository = strings.ToLower(repository)

	for _, label := range gLabels {
		if label.Name == nil {
			return nil, fmt.Errorf("Label is missing name field")
		}
		labels = append(labels, sql.Label{
			IssueID:    strconv.Itoa(issueID),
			Name:       *label.Name,
			Repository: repository,
		})
	}

	return labels, nil
}
func newLabels(issueID int, gLabels []github.Label, repository string) ([]sql.Label, error) {
	labels := []sql.Label{}
	repository = strings.ToLower(repository)

	for _, label := range gLabels {
		if label.Name == nil {
			return nil, fmt.Errorf("Label is missing name field")
		}
		labels = append(labels, sql.Label{
			IssueID:    strconv.Itoa(issueID),
			Name:       *label.Name,
			Repository: repository,
		})
	}

	return labels, nil
}
// newLabels creates a new Label for each label in the issue