api

package
v0.0.0-...-b5a03d5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 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
}

Client describe an instance of API client.

func NewClient

func NewClient(ctx context.Context, wf *aw.Workflow) (*Client, error)

NewClient return a instance of github client.

func (*Client) FetchAuthenticatedUser

func (client *Client) FetchAuthenticatedUser(ctx context.Context) (*model.User, error)

GetAuthenticatedUser fetch the authenticated user.

func (*Client) FetchBranches

func (client *Client) FetchBranches(ctx context.Context, owner string, repo string) ([]model.Branch, error)

FetchBranches fetch the branches in the repository.

func (*Client) FetchIssues

func (client *Client) FetchIssues(ctx context.Context, owner string, repo string) ([]model.Issue, error)

FetchIssues fetch the issues in the repository.

func (*Client) FetchIssuesAssigned

func (client *Client) FetchIssuesAssigned(ctx context.Context, user string) ([]model.Issue, error)

func (*Client) FetchIssuesCreated

func (client *Client) FetchIssuesCreated(ctx context.Context, user string) ([]model.Issue, error)

func (*Client) FetchIssuesMentioned

func (client *Client) FetchIssuesMentioned(ctx context.Context, user string) ([]model.Issue, error)

func (*Client) FetchMentioned

func (client *Client) FetchMentioned(ctx context.Context, user string) ([]model.Issue, error)

func (*Client) FetchMilestones

func (client *Client) FetchMilestones(ctx context.Context, owner string, repo string) ([]model.Milestone, error)

FetchMilestones fetch the milestones in the repository.

func (*Client) FetchProjects

func (client *Client) FetchProjects(ctx context.Context, owner string, repo string) ([]model.Project, error)

FetchProjects fetch the project cards in the repository.

func (*Client) FetchPulls

func (client *Client) FetchPulls(ctx context.Context, owner string, repo string) ([]model.PullRequest, error)

FetchPulls fetch the pull requests in the repository.

func (*Client) FetchPullsAssigned

func (client *Client) FetchPullsAssigned(ctx context.Context, user string) ([]model.Issue, error)

func (*Client) FetchPullsCreated

func (client *Client) FetchPullsCreated(ctx context.Context, user string) ([]model.Issue, error)

func (*Client) FetchReleases

func (client *Client) FetchReleases(ctx context.Context, owner string, repo string) ([]model.Release, error)

func (*Client) FetchRepo

func (client *Client) FetchRepo(ctx context.Context, owner string, repo string) (*model.Repo, error)

FetchRepo fetch the target repository

func (*Client) FetchReposByOrgs

func (client *Client) FetchReposByOrgs(ctx context.Context, org string) ([]model.Repo, error)

FetchReposByOrgs fetch the repository in the organization.

func (*Client) FetchReposByOwner

func (client *Client) FetchReposByOwner(ctx context.Context, owner string) ([]model.Repo, error)

FetchReposByOwner fetch the repos.

func (*Client) FetchReviewRequests

func (client *Client) FetchReviewRequests(ctx context.Context, user string) ([]model.Issue, error)

func (*Client) SearchIssues

func (client *Client) SearchIssues(
	ctx context.Context, query string, opt *github.SearchOptions) ([]model.Issue, error)

func (*Client) SearchPulls

func (client *Client) SearchPulls(ctx context.Context, user string) ([]model.Issue, error)

SearchPulls fetch the pull requests which the user was requested to review.

Jump to

Keyboard shortcuts

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