Documentation
¶
Index ¶
- func BuildSearchQuery(repo string, since string, customQuery string) string
- func GetLastActivityTime(issue *github.Issue) time.Time
- func IsPR(issue *github.Issue) bool
- type Client
- func (c *Client) GetComments(ctx context.Context, owner, repo string, number int) ([]*github.IssueComment, error)
- func (c *Client) GetEffectiveTime(ctx context.Context, issue *github.Issue) time.Time
- func (c *Client) GetIssue(ctx context.Context, owner, repo string, number int) (*github.Issue, error)
- func (c *Client) GetLatestCommentTime(ctx context.Context, owner, repo string, number int) (time.Time, bool)
- func (c *Client) SearchIssues(ctx context.Context, query string) ([]*github.Issue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSearchQuery ¶
BuildSearchQuery builds a GitHub Search API query string.
func GetLastActivityTime ¶
GetLastActivityTime returns the later of created_at or updated_at. For items with comments, we would need to fetch comments separately. This implementation uses updated_at as a proxy for last activity.
Types ¶
type Client ¶
Client wraps the GitHub client.
func (*Client) GetComments ¶
func (c *Client) GetComments(ctx context.Context, owner, repo string, number int) ([]*github.IssueComment, error)
GetComments fetches comments for an issue.
func (*Client) GetEffectiveTime ¶
GetEffectiveTime returns the later of created_at or last comment time. This is the "effective" time used for watermark comparison.
func (*Client) GetIssue ¶
func (c *Client) GetIssue(ctx context.Context, owner, repo string, number int) (*github.Issue, error)
GetIssue fetches a single issue by number. Returns the issue, or an error if not found.
Click to show internal directories.
Click to hide internal directories.