Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateHook(hooksURL string, hook Hook) error
- func (c *Client) GetHooks(hooksURL string) ([]*Hook, error)
- func (c *Client) GetIssue(issueURL string) (*Issue, error)
- func (c *Client) ListRepositories(organization string) ([]*Repository, error)
- func (c *Client) UpdateIssue(issueURL string, update IssueUpdate) error
- type Hook
- type HookConfig
- type Issue
- type IssueEvent
- type IssueUpdate
- type Label
- type Owner
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) ListRepositories ¶
func (c *Client) ListRepositories(organization string) ([]*Repository, error)
func (*Client) UpdateIssue ¶
func (c *Client) UpdateIssue(issueURL string, update IssueUpdate) error
type Hook ¶
type Hook struct { Name string `json:"name"` Active bool `json:"active"` Events []string `json:"events"` Config HookConfig `json:"config"` }
type HookConfig ¶
type IssueEvent ¶
type IssueEvent struct { Action string `json:"action"` Issue *Issue `json:"issue"` Repository *Repository `json:"repository"` Label *Label `json:"label"` }
type IssueUpdate ¶
type IssueUpdate struct {
Body string `json:"body"`
}
Click to show internal directories.
Click to hide internal directories.