func (f *FakeClient) GetIssueLabels(owner, repo string, number int) ([]github.Label, error) {
	re := regexp.MustCompile(fmt.Sprintf(`^%s/%s#%d:(.*)$`, owner, repo, number))
	la := []github.Label{}
	allLabels := sets.NewString(f.IssueLabelsExisting...)
	allLabels.Insert(f.IssueLabelsAdded...)
	allLabels.Delete(f.IssueLabelsRemoved...)
	for _, l := range allLabels.List() {
		groups := re.FindStringSubmatch(l)
		if groups != nil {
			la = append(la, github.Label{Name: groups[1]})
		}
	}
	return la, nil
}
func (f *FakeClient) GetIssueLabels(owner, repo string, number int) ([]github.Label, error) {
	re := regexp.MustCompile(fmt.Sprintf(`^%s/%s#%d:(.*)$`, owner, repo, number))
	la := []github.Label{}
	allLabels := sets.NewString(f.IssueLabelsExisting...)
	allLabels.Insert(f.IssueLabelsAdded...)
	allLabels.Delete(f.IssueLabelsRemoved...)
	for _, l := range allLabels.List() {
		groups := re.FindStringSubmatch(l)
		if groups != nil {
			la = append(la, github.Label{Name: groups[1]})
		}
	}
	return la, nil
}
func ( f * FakeClient ) GetIssueLabels ( owner , repo string , number int ) ( [ ] github . Label , error ) { re := regexp . MustCompile ( fmt . Sprintf ( `^%s/%s#%d:(.*)$` , owner , repo , number ) ) la := [ ] github . Label { } allLabels := sets . NewString ( f . IssueLabelsExisting ... ) allLabels . Insert ( f . IssueLabelsAdded ... ) allLabels . Delete ( f . IssueLabelsRemoved ... ) for _ , l := range allLabels . List ( ) { groups := re . FindStringSubmatch ( l ) if groups != nil { la = append ( la , github . Label { Name : groups [ 1 ] } ) } } return la , nil }
// GetIssueLabels gets labels on an issue
GetIssueLabels gets labels on an issue