local

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Path         string                     `json:"path"`
	Issues       map[int]*types.Issue       `json:"issues"`
	PullRequests map[int]*types.PullRequest `json:"pullRequests"`
	IssueCounter int                        `json:"issueCounter"`
}

func NewProvider

func NewProvider(path 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(_, _ string, resourceID int) (string, error)

func (*Provider) FetchIssues

func (p *Provider) FetchIssues(remotePath string, options types.IssueFilterOptions) ([]types.Issue, 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) Save

func (p *Provider) Save() 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

type ProviderConfig

type ProviderConfig struct {
	Providers map[string]Provider `json:"providers"`
}

func (*ProviderConfig) Save

func (p *ProviderConfig) Save() error

Jump to

Keyboard shortcuts

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