Documentation
¶
Index ¶
- func Attach(args []string) error
- func Blocks(args []string) error
- func Close(args []string) error
- func Comment(args []string) error
- func Create(args []string) error
- func Duplicate(args []string) error
- func ForCommit(args []string) error
- func Link(args []string) error
- func List(args []string) error
- func Pull(args []string) error
- func Push(args []string) error
- func Relate(args []string) error
- func Show(args []string) error
- type GitRepo
- func (r *GitRepo) CreateIssueRef(id int64, metaContent, descContent string) error
- func (r *GitRepo) GetNextIssueID() (int64, error)
- func (r *GitRepo) ListIssueRefs(includeAll bool) ([]string, error)
- func (r *GitRepo) ReadIssue(ref string) (*Issue, string, error)
- func (r *GitRepo) UpdateIssueCommit(id int64, message string, updates map[string]string) error
- func (r *GitRepo) UpdateIssueCommitByRef(ref, message string, updates map[string]string) error
- type Issue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitRepo ¶
type GitRepo struct{}
GitRepo provides git operations
func (*GitRepo) CreateIssueRef ¶
CreateIssueRef creates a new issue ref with initial tree
func (*GitRepo) GetNextIssueID ¶
GetNextIssueID reads and increments the issue counter
func (*GitRepo) ListIssueRefs ¶
ListIssueRefs lists all issue refs (open and optionally closed)
func (*GitRepo) UpdateIssueCommit ¶
UpdateIssueCommit adds a new commit to an issue chain
type Issue ¶
type Issue struct {
ID int64
Status string // "open" or "closed"
Created time.Time
Updated time.Time
Commits []string
Branches []string
ClosedBy *string
Title string // From description.md first line
RelatedIssues []string
Blocks []string
BlockedBy []string
Duplicates []string
}
Issue represents an issue's metadata
func NodeToMeta ¶
NodeToMeta converts ir.Node (tony format) to Issue metadata
func (*Issue) MetaToNode ¶
MetaToNode converts Issue metadata to ir.Node (tony format)
Click to show internal directories.
Click to hide internal directories.