Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT, MIT Imports: 10 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(token string) (*Client, error)

func (*Client) AddIssueToProject

func (c *Client) AddIssueToProject(ctx context.Context, projectURL, issueURL string) error

func (*Client) CloseIssue

func (c *Client) CloseIssue(ctx context.Context, repo string, issueNumber int) error

func (*Client) CreateIssue

func (c *Client) CreateIssue(ctx context.Context, owner, repo string, issue models.Issue) (int, error)

func (*Client) CreateMilestone

func (c *Client) CreateMilestone(ctx context.Context, owner, repo string, milestone models.Milestone) (int, error)

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, title string) (string, error)

func (*Client) DeleteIssue

func (c *Client) DeleteIssue(ctx context.Context, repo string, issueNumber int) error

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, projectNumber string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, path string, response interface{}) error

func (*Client) GetIssueByTitle

func (c *Client) GetIssueByTitle(ctx context.Context, owner, repo, title string) (*models.Issue, error)

func (*Client) GetIssueTitle

func (c *Client) GetIssueTitle(ctx context.Context, repo string, issueNumber int) (string, error)

func (*Client) GetMilestoneByTitle

func (c *Client) GetMilestoneByTitle(ctx context.Context, owner, repo, title string) (*models.Milestone, error)

func (*Client) GetProjectOwner

func (c *Client) GetProjectOwner(ctx context.Context, projectNumber string) (string, error)

func (*Client) GetUsername

func (c *Client) GetUsername() (string, error)

func (*Client) LinkProjectToRepo

func (c *Client) LinkProjectToRepo(ctx context.Context, projectNumber, repoFullName string) error

func (*Client) ListProjectIssues

func (c *Client) ListProjectIssues(ctx context.Context, projectNumber string) ([]models.IssueItem, error)

func (*Client) ListUserProjects

func (c *Client) ListUserProjects(ctx context.Context) ([]models.Project, error)

func (*Client) Patch

func (c *Client) Patch(ctx context.Context, path string, body io.Reader, response interface{}) error

func (*Client) Post

func (c *Client) Post(ctx context.Context, path string, body io.Reader, response interface{}) error

func (*Client) UpdateIssueMilestone

func (c *Client) UpdateIssueMilestone(ctx context.Context, owner, repo string, issueNumber, milestoneNumber int) error

Jump to

Keyboard shortcuts

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