()
| 143 | } |
| 144 | |
| 145 | func (g *GitHub) CloseIssue() error { |
| 146 | if isTesting() { |
| 147 | debugMessage("Closing issue") |
| 148 | return nil |
| 149 | } |
| 150 | |
| 151 | _, _, err := g.Client.Issues.Edit( |
| 152 | context.Background(), |
| 153 | g.RepoOwner, |
| 154 | g.RepoName, |
| 155 | *g.Issue.Number, |
| 156 | &github.IssueRequest{ |
| 157 | State: github.String("closed"), |
| 158 | }, |
| 159 | ) |
| 160 | |
| 161 | return err |
| 162 | } |
| 163 | |
| 164 | func (g *GitHub) commitFile(filePath string, content []byte, message string, update bool) error { |
| 165 | commitBranch := "main" |
no test coverage detected