Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IssueStateFromString ¶
IssueStateFromString converts a string state to the Bitbucket API state format
Types ¶
type Issue ¶
type Issue struct {
ID int `json:"id"`
Title string `json:"title"`
Content *Content `json:"content,omitempty"`
State string `json:"state"` // new, open, resolved, on hold, invalid, duplicate, wontfix, closed
Priority string `json:"priority"` // trivial, minor, major, critical, blocker
Kind string `json:"kind"` // bug, enhancement, proposal, task
Reporter User `json:"reporter"`
Assignee *User `json:"assignee,omitempty"`
CreatedOn string `json:"created_on"`
UpdatedOn string `json:"updated_on"`
Links Links `json:"links"`
Votes int `json:"votes"`
Watches int `json:"watches"`
}
Issue represents a Bitbucket issue
func (*Issue) KindDisplay ¶
KindDisplay returns a human-readable kind
func (*Issue) PriorityDisplay ¶
PriorityDisplay returns a human-readable priority
func (*Issue) StateDisplay ¶
StateDisplay returns a human-readable state
type IssueList ¶
type IssueList struct {
Size int `json:"size"`
Page int `json:"page"`
PageLen int `json:"pagelen"`
Next string `json:"next"`
Previous string `json:"previous"`
Values []Issue `json:"values"`
}
IssueList represents a paginated list of issues
Click to show internal directories.
Click to hide internal directories.