github

package
v0.0.0-...-bcc1535 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(tkn string) (*Client, error)

func (*Client) FetchNotifications

func (c *Client) FetchNotifications() ([]*Repository, error)

func (*Client) MarkNotificationAsRead

func (c *Client) MarkNotificationAsRead(id string) error

func (*Client) SearchPullRequestsMine

func (c *Client) SearchPullRequestsMine() ([]*Repository, error)

func (*Client) SearchPullRequestsReviewRequested

func (c *Client) SearchPullRequestsReviewRequested() ([]*Repository, error)

type Notification

type Notification struct {
	ID     string
	Reason string
	Title  string
	URL    string

	Repository *Repository
}

type PullRequest

type PullRequest struct {
	Title string
	URL   string

	Repository *Repository
}

type Repository

type Repository struct {
	Owner string
	Name  string

	PullRequests  []*PullRequest
	Notifications []*Notification
}

Jump to

Keyboard shortcuts

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