(label string)
| 109 | } |
| 110 | |
| 111 | func (g *GitHub) AddIssueLabel(label string) error { |
| 112 | if isTesting() { |
| 113 | debugMessage(fmt.Sprintf("Adding label \"%s\"", label)) |
| 114 | return nil |
| 115 | } |
| 116 | |
| 117 | _, _, err := g.Client.Issues.AddLabelsToIssue( |
| 118 | context.Background(), |
| 119 | g.RepoOwner, |
| 120 | g.RepoName, |
| 121 | *g.Issue.Number, |
| 122 | []string{label}, |
| 123 | ) |
| 124 | |
| 125 | return err |
| 126 | } |
| 127 | |
| 128 | func (g *GitHub) RemoveIssueLabel(label string) error { |
| 129 | if isTesting() { |
no test coverage detected