Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveFilePath ¶
ResolveFilePath resolves a URL, short path, or file path to an actual file path. Supports:
- Full URL: https://github.com/owner/repo/issues/123
- Short path: owner/repo/issues/123
- Root-relative path: owner/repo/issues/123.md
- Local file: ~/.gh-md/owner/repo/issues/123.md
Types ¶
type ParsedComment ¶
type ParsedComment struct {
ID string // empty = new comment
Author string
Body string
ParentID string // for discussion replies (derived from indentation)
}
ParsedComment represents a parsed comment from the markdown file.
type ParsedFile ¶
type ParsedFile struct {
// From frontmatter
ID string
Owner string
Repo string
Number int
Updated time.Time // For conflict detection
State string // open/closed from frontmatter
// From content
Title string
Body string
ItemType github.ItemType
Comments []ParsedComment // Parsed from comments section
// Original file path
FilePath string
}
ParsedFile represents a parsed markdown file.
func ParseFile ¶
func ParseFile(path string) (*ParsedFile, error)
ParseFile parses a markdown file and returns structured data.
Click to show internal directories.
Click to hide internal directories.