Versions in this module Expand all Collapse all v0 v0.0.2 Oct 7, 2021 v0.0.1 Sep 30, 2021 Changes in this version + var Branches map[string]*git.Branch + var Repos map[string]*Repo + var Users map[string]*git.User + func DeleteLabel(repoName string, id int, label string) error + type Client struct + K8sClient client.Client + Repository string + func (c *Client) CanUserWriteToRepo(user git.User) (bool, error) + func (c *Client) DeleteLabel(_ git.IssueType, id int, label string) error + func (c *Client) DeleteWebhook(id int) error + func (c *Client) GetBranch(branch string) (*git.Branch, error) + func (c *Client) GetPullRequest(id int) (*git.PullRequest, error) + func (c *Client) GetPullRequestDiff(id int) (*git.Diff, error) + func (c *Client) GetUserInfo(userName string) (*git.User, error) + func (c *Client) Init() error + func (c *Client) ListCommitStatuses(ref string) ([]git.CommitStatus, error) + func (c *Client) ListPullRequestCommits(id int) ([]git.Commit, error) + func (c *Client) ListPullRequests(_ bool) ([]git.PullRequest, error) + func (c *Client) ListWebhook() ([]git.WebhookEntry, error) + func (c *Client) MergePullRequest(id int, _ string, _ git.MergeMethod, message string) error + func (c *Client) ParseWebhook(_ http.Header, _ []byte) (*git.Webhook, error) + func (c *Client) RegisterComment(_ git.IssueType, issueNo int, body string) error + func (c *Client) RegisterWebhook(url string) error + func (c *Client) SetCommitStatus(sha string, status git.CommitStatus) error + func (c *Client) SetLabel(_ git.IssueType, id int, label string) error + type Repo struct + Comments map[int][]git.IssueComment + CommitStatuses map[string][]git.CommitStatus + Commits map[string][]git.Commit + PullRequestCommits map[int][]git.Commit + PullRequestDiffs map[int]*git.Diff + PullRequests map[int]*git.PullRequest + UserCanWrite map[string]bool + Webhooks map[int]*git.WebhookEntry