Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPRsAsBulletPoints ¶
func FormatPRsAsBulletPoints(prs []PullRequest, needsReviewPrefix bool) string
FormatPRsAsBulletPoints formats PRs as markdown bullet points
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles GitHub CLI interactions
func (*Client) GetPRsCreatedYesterday ¶
func (c *Client) GetPRsCreatedYesterday(date time.Time) ([]PullRequest, error)
GetPRsCreatedYesterday fetches PRs created yesterday in the organization
func (*Client) GetPRsOpenAndUnreviewed ¶
func (c *Client) GetPRsOpenAndUnreviewed(date time.Time) ([]PullRequest, error)
GetPRsOpenAndUnreviewed fetches PRs opened in the last 7 days that are still open and unreviewed
type PullRequest ¶
type PullRequest struct {
Number int `json:"number"`
Title string `json:"title"`
URL string `json:"url"`
State string `json:"state"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Author string `json:"author"`
Repo string `json:"repository"`
Reviews int `json:"reviews"`
}
PullRequest represents a GitHub pull request
Click to show internal directories.
Click to hide internal directories.