GetLabelByID returns a label by given ID.
(id int64)
| 164 | |
| 165 | // GetLabelByID returns a label by given ID. |
| 166 | func GetLabelByID(id int64) (*Label, error) { |
| 167 | return getLabelOfRepoByID(x, 0, id) |
| 168 | } |
| 169 | |
| 170 | // GetLabelOfRepoByID returns a label by ID in given repository. |
| 171 | func GetLabelOfRepoByID(repoID, labelID int64) (*Label, error) { |
nothing calls this directly
no test coverage detected