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
func WalkParsedFiles ¶ added in v0.2.0
func WalkParsedFiles(filters WalkFilters, callback func(*ParsedFile) error) error
WalkParsedFiles walks the gh-md root directory and calls the callback for each parsed file. Returns early if callback returns an error.
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
Author string
Assignees []string
Reviewers []string
Labels []string
Created time.Time
// 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.
type WalkFilters ¶ added in v0.2.0
type WalkFilters struct {
Repo string // "owner/repo" format, empty = all repos
}
WalkFilters specifies which files to include when walking.
Click to show internal directories.
Click to hide internal directories.