(label string)
| 99 | } |
| 100 | |
| 101 | func (g *GitHub) IssueHasLabel(label string) bool { |
| 102 | for _, entry := range g.Issue.Labels { |
| 103 | if label == *entry.Name { |
| 104 | return true |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | return false |
| 109 | } |
| 110 | |
| 111 | func (g *GitHub) AddIssueLabel(label string) error { |
| 112 | if isTesting() { |