mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Add gerrit widget
This commit is contained in:
14
vendor/github.com/adlio/trello/label.go
generated
vendored
14
vendor/github.com/adlio/trello/label.go
generated
vendored
@@ -5,6 +5,8 @@
|
||||
|
||||
package trello
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Label struct {
|
||||
ID string `json:"id"`
|
||||
IDBoard string `json:"idBoard"`
|
||||
@@ -12,3 +14,15 @@ type Label struct {
|
||||
Color string `json:"color"`
|
||||
Uses int `json:"uses"`
|
||||
}
|
||||
|
||||
func (c *Client) GetLabel(labelID string, args Arguments) (label *Label, err error) {
|
||||
path := fmt.Sprintf("labels/%s", labelID)
|
||||
err = c.Get(path, args, &label)
|
||||
return
|
||||
}
|
||||
|
||||
func (b *Board) GetLabels(args Arguments) (labels []*Label, err error) {
|
||||
path := fmt.Sprintf("boards/%s/labels", b.ID)
|
||||
err = b.client.Get(path, args, &labels)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user