github

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 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 GitHubPRResponse

type GitHubPRResponse struct {
	Number int `json:"number"`
}

type Provider

type Provider struct {
	Client *github.Client
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(path, token string) *Provider

func (*Provider) AddCommentReaction

func (p *Provider) AddCommentReaction(repoPath, reaction string, commentID int64) error

func (*Provider) AddLabelToIssue

func (p *Provider) AddLabelToIssue(issueNumber int, label string) error

func (*Provider) CreateDraftPR

func (p *Provider) CreateDraftPR(path string, input types.PullRequestInput) error

func (*Provider) CreateIssue

func (p *Provider) CreateIssue(issue types.Issue) (int, error)

func (*Provider) CreateIssueComment

func (p *Provider) CreateIssueComment(remotePath string, issueNumber int, comment types.Comment) error

func (*Provider) CreatePRComment

func (p *Provider) CreatePRComment(remotePath string, prNumber int, comment types.Comment) error

func (*Provider) DeleteIssue

func (p *Provider) DeleteIssue(repoPath string, issueNumber int) error

func (*Provider) DeletePullRequest

func (p *Provider) DeletePullRequest(repoPath string, prNumber int) error

func (*Provider) FetchComments

func (p *Provider) FetchComments(owner, repo string, prNumber int) ([]*types.Comment, error)

func (*Provider) FetchDiffs

func (p *Provider) FetchDiffs(owner, repo string, resourceID int) (string, error)

func (*Provider) FetchIssues

func (p *Provider) FetchIssues(remotePath string, options types.IssueFilterOptions) ([]types.Issue, error)

func (*Provider) FetchPullRequestCommentReactions

func (p *Provider) FetchPullRequestCommentReactions(owner, repo string, commentID int64) (types.Reactions, error)

func (*Provider) FetchPullRequests

func (p *Provider) FetchPullRequests(remotePath, label string) ([]types.PullRequest, error)

func (*Provider) FetchRepositories

func (p *Provider) FetchRepositories() ([]types.Repository, error)

func (*Provider) UpdateIssueState

func (p *Provider) UpdateIssueState(issueNumber int, state string) error

func (*Provider) UpdatePullRequestState

func (p *Provider) UpdatePullRequestState(remotePath string, prNumber int, state string) error

Jump to

Keyboard shortcuts

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