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 + func Validate(secret, headerToken string) error + type BranchResponse struct + Commit struct{ ... } + Name string + type Client struct + GitAPIURL string + GitRepository string + GitToken string + GitWebhookSecret string + K8sClient client.Client + func (c *Client) CanUserWriteToRepo(user git.User) (bool, error) + func (c *Client) DeleteLabel(issueType 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(userID 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(onlyOpen bool) ([]git.PullRequest, error) + func (c *Client) ListWebhook() ([]git.WebhookEntry, error) + func (c *Client) MergePullRequest(id int, sha string, method git.MergeMethod, msg string) error + func (c *Client) ParseWebhook(header http.Header, jsonString []byte) (*git.Webhook, error) + func (c *Client) RegisterComment(issueType git.IssueType, issueNo int, body string) error + func (c *Client) RegisterWebhook(uri string) error + func (c *Client) SetCommitStatus(sha string, status git.CommitStatus) error + func (c *Client) SetLabel(issueType git.IssueType, id int, label string) error + type CommentBody struct + Body string + type CommitResponse struct + AuthorEmail string + AuthorName string + CommitterEmail string + CommitterName string + ID string + Message string + type CommitStatusRequest struct + Context string + Description string + State string + TargetURL string + type CommitStatusResponse struct + Description string + Name string + Status string + TargetURL string + type Label struct + Title string + type MergeAcceptRequest struct + MergeCommitMessage string + RemoveSourceBranch bool + Sha string + Squash bool + SquashCommitMessage string + type MergeRequest struct + Author struct{ ... } + HasConflicts bool + ID int + Labels []string + SHA string + SourceBranch string + State string + TargetBranch string + Title string + WebURL string + type MergeRequestChanges struct + Changes []struct{ ... } + type MergeRequestWebhook struct + Changes struct{ ... } + Kind string + Labels []Label + ObjectAttribute struct{ ... } + Project Project + User User + type NoteHook struct + MergeRequest struct{ ... } + ObjectAttributes struct{ ... } + Project Project + User User + type Project struct + Name string + WebURL string + type PushWebhook struct + Kind string + Project Project + Ref string + Sha string + UserID int + UserName string + type RegistrationWebhookBody struct + ConfidentialIssueEvents bool + ConfidentialNoteEvents bool + DeploymentEvents bool + EnableSSLVerification bool + ID string + IssueEvents bool + JobEvents bool + MergeRequestEvents bool + NoteEvents bool + PipeLineEvents bool + PushEvents bool + TagPushEvents bool + Token string + URL string + WikiPageEvents bool + type UpdateMergeRequest struct + AddLabels string + RemoveLabels string + type User struct + Email string + ID int + Name string + type UserInfo struct + Email string + ID int + PublicEmail string + UserName string + type UserPermission struct + AccessLevel int + type WebhookEntry struct + ID int + URL string