Documentation ¶
Overview ¶
Package changesets provides access to a project's changesets via the Lighthouse API. http://help.lighthouseapp.com/kb/api/changesets.
Index ¶
- type Change
- type Changes
- type Changeset
- type ChangesetCreate
- type Changesets
- type ListOptions
- type Service
- func (s *Service) Create(c *Changeset) (*Changeset, error)
- func (s *Service) Delete(revision string) error
- func (s *Service) Get(revision string) (*Changeset, error)
- func (s *Service) List(opts *ListOptions) (Changesets, error)
- func (s *Service) ListAll(opts *ListOptions) (Changesets, error)
- func (s *Service) New() (*Changeset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Changeset ¶
type Changeset struct { Body string `json:"body"` BodyHTML string `json:"body_html"` ChangedAt *time.Time `json:"changed_at"` Changes Changes `json:"changes"` Committer string `json:"committer"` ProjectID int `json:"project_id"` Revision string `json:"revision"` TicketID int `json:"ticket_id"` Title string `json:"title"` UserID int `json:"user_id"` }
type ChangesetCreate ¶
type Changesets ¶
type Changesets []*Changeset
type ListOptions ¶ added in v0.4.1
type ListOptions struct { // Undocumented. If non-zero, the page to return. Page int }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(s *lighthouse.Service, projectID int) *Service
func (*Service) List ¶
func (s *Service) List(opts *ListOptions) (Changesets, error)
func (*Service) ListAll ¶ added in v0.4.1
func (s *Service) ListAll(opts *ListOptions) (Changesets, error)
ListAll repeatedly calls List and returns all pages. ListAll ignores opts.Page.
Click to show internal directories.
Click to hide internal directories.