Documentation
¶
Index ¶
- Variables
- func ValidRepoRef(repo string) bool
- type Item
- func (i Item) HasPendingSync() bool
- func (i Item) IsDone() bool
- func (i Item) IsLocallyPurged() bool
- func (i Item) IsTrashed() bool
- func (i Item) Labels() []string
- func (i Item) Matches(query string) bool
- func (i Item) NormalizedType() Type
- func (i Item) PendingSyncLabel() string
- func (i Item) RemoteRepo() string
- type Stage
- type SyncOperation
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var Stages = []Stage{ StageIdea, StagePlanned, StageActive, StageBlocked, StageDone, }
View Source
var Types = []Type{ TypeFeature, TypeBug, TypeChore, }
Functions ¶
func ValidRepoRef ¶ added in v0.1.1
ValidRepoRef reports whether repo is a GitHub repository in owner/name form.
Types ¶
type Item ¶
type Item struct {
Title string `json:"title"`
Project string `json:"project"`
Type Type `json:"type"`
Stage Stage `json:"stage"`
Trashed bool `json:"trashed,omitempty"`
Body string `json:"body"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
RemoteUpdatedAt time.Time `json:"remote_updated_at,omitempty"`
IssueNumber int `json:"issue_number"`
Repo string `json:"repo"`
SyncedRepo string `json:"synced_repo,omitempty"`
PendingSync SyncOperation `json:"pending_sync,omitempty"`
SyncConflict bool `json:"sync_conflict,omitempty"`
SyncError string `json:"sync_error,omitempty"`
State string `json:"state,omitempty"`
}
func (Item) HasPendingSync ¶ added in v0.1.1
func (Item) IsLocallyPurged ¶ added in v0.1.1
func (Item) NormalizedType ¶ added in v0.1.1
func (Item) PendingSyncLabel ¶ added in v0.1.1
func (Item) RemoteRepo ¶ added in v0.1.1
type SyncOperation ¶ added in v0.1.1
type SyncOperation string
const ( SyncNone SyncOperation = "" SyncCreate SyncOperation = "create" SyncUpdate SyncOperation = "update" SyncDelete SyncOperation = "delete" SyncRestore SyncOperation = "restore" SyncPurge SyncOperation = "purge" )
Click to show internal directories.
Click to hide internal directories.