(c *context.APIContext)
| 111 | } |
| 112 | |
| 113 | func ClearIssueLabels(c *context.APIContext) { |
| 114 | issue, err := database.GetIssueByIndex(c.Repo.Repository.ID, c.ParamsInt64(":index")) |
| 115 | if err != nil { |
| 116 | c.NotFoundOrError(err, "get issue by index") |
| 117 | return |
| 118 | } |
| 119 | |
| 120 | if err := issue.ClearLabels(c.User); err != nil { |
| 121 | c.Error(err, "clear labels") |
| 122 | return |
| 123 | } |
| 124 | |
| 125 | c.NoContent() |
| 126 | } |
nothing calls this directly
no test coverage detected