Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBackgroundColor = "#282828" FallbackCommentColor = "#83a598" )
Variables ¶
View Source
var ( BaseStyle = lipgloss.NewStyle(). PaddingLeft(1). PaddingRight(1). Foreground(lipgloss.Color(DefaultBackgroundColor)) )
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct {
IssueKey string `json:"issue_key" jsonschema:"issue key"`
IssueType string `json:"issue_type" jsonschema:"issue type"`
Summary string `json:"summary" jsonschema:"issue summary"`
Assignee string `json:"assignee" jsonschema:"issue assignee"`
Status string `json:"status" jsonschema:"issue status"`
AggSecondsSpent int `json:"agg_seconds_spent" jsonschema:"aggregate seconds spent on the issue"`
TrackingActive bool `json:"-"`
Desc string `json:"-"`
}
func (Issue) Description ¶
func (Issue) FilterValue ¶
type JiraConfig ¶
type JiraConfig struct {
InstallationType JiraInstallationType
JQL string
TimeDeltaMins int
FallbackComment *string
}
type JiraInstallationType ¶
type JiraInstallationType uint
const ( OnPremiseInstallation JiraInstallationType = iota CloudInstallation )
type MCPTransport ¶
type MCPTransport uint8
const ( McpTransportStdio MCPTransport = iota McpTransportHTTP )
func ParseMCPTransport ¶
func ParseMCPTransport(value string) (MCPTransport, bool)
type McpConfig ¶
type McpConfig struct {
Transport MCPTransport
HTTPPort uint
}
type SyncedWorklogEntry ¶
type SyncedWorklogEntry struct {
ID int
IssueKey string
BeginTS time.Time
EndTS time.Time
Comment *string
}
func (SyncedWorklogEntry) Description ¶
func (entry SyncedWorklogEntry) Description() string
func (SyncedWorklogEntry) FilterValue ¶
func (entry SyncedWorklogEntry) FilterValue() string
func (*SyncedWorklogEntry) NeedsComment ¶
func (entry *SyncedWorklogEntry) NeedsComment() bool
func (SyncedWorklogEntry) Title ¶
func (entry SyncedWorklogEntry) Title() string
type ValidatedWorkLog ¶
type WorklogEntry ¶
type WorklogEntry struct {
ID int `json:"id" jsonschema:"worklog entry ID"`
IssueKey string `json:"issue_key" jsonschema:"JIRA issue key"`
BeginTS time.Time `json:"begin_time" jsonschema:"worklog begin time"`
EndTS *time.Time `json:"end_time" jsonschema:"worklog end time"`
Comment *string `json:"comment" jsonschema:"worklog comment"`
FallbackComment *string `json:"-"`
Active bool `json:"-"`
Synced bool `json:"-"`
SyncInProgress bool `json:"-"`
Error error `json:"-"`
}
func (WorklogEntry) Description ¶
func (entry WorklogEntry) Description() string
func (WorklogEntry) FilterValue ¶
func (entry WorklogEntry) FilterValue() string
func (*WorklogEntry) NeedsComment ¶
func (entry *WorklogEntry) NeedsComment() bool
func (WorklogEntry) SecsSpent ¶
func (entry WorklogEntry) SecsSpent() int
func (WorklogEntry) Title ¶
func (entry WorklogEntry) Title() string
Click to show internal directories.
Click to hide internal directories.