github

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 5 Imported by: 0

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

func IsAvailable

func IsAvailable() bool

IsAvailable checks if GitHub CLI is available

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client handles GitHub CLI interactions

func NewClient

func NewClient(org string) *Client

NewClient creates a new GitHub client

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL