Documentation
¶
Overview ¶
Package diff provides functionality to analyze updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct {
Stargazers StatChange `json:"stargazers"`
Subscribers StatChange `json:"subscribers"`
Forks StatChange `json:"forks"`
Description string `json:"description"`
Language string `json:"language"`
License string `json:"license"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
Diff holds the before/after/delta values for repository statistics and static metadata for LLM context.
type Jar ¶ added in v0.0.2
Jar holds a collection of Diff objects and information to notify the user.
func NewJar ¶ added in v0.0.2
func NewJar() *Jar
NewJar creates a new Jar given information to notify the user.
func (*Jar) Add ¶ added in v0.0.2
func (d *Jar) Add(name string, is, was *g.Repository)
Add adds a new Diff into the Jar if a difference in the latest update was detected.
func (*Jar) ComputeDiffs ¶ added in v0.0.3
func (d *Jar) ComputeDiffs(newRepos []*g.Repository, prevRepos map[string]g.Repository)
ComputeDiffs compares newRepos with prevRepos and populates Diffs.
type StatChange ¶ added in v0.0.5
type StatChange struct {
Before int `json:"before"`
After int `json:"after"`
Diff int `json:"diff"`
}
StatChange holds the absolute and delta values for a repository statistic (e.g., stargazers, subscribers, forks).
Click to show internal directories.
Click to hide internal directories.