Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + type Action string + const Merge + const MergeBatch + const PoolBlocked + const Trigger + const TriggerBatch + const Wait + type CheckRun struct + Conclusion githubql.String + Name githubql.String + Status githubql.String + type CheckRunNode struct + CheckRun CheckRun + type CodeReviewCommon struct + AuthorLogin string + BaseRefName string + BaseRefPrefix string + Body string + Gerrit *gerrit.ChangeInfo + GitHub *PullRequest + HeadRefName string + HeadRefOID string + Mergeable string + NameWithOwner string + Number int + Org string + Repo string + Title string + UpdatedAtTime time.Time + func CodeReviewCommonFromGerrit(gci *gerrit.ChangeInfo, instance string) *CodeReviewCommon + func CodeReviewCommonFromPullRequest(pr *PullRequest) *CodeReviewCommon + func (crc *CodeReviewCommon) GitHubCommits() *Commits + func (crc *CodeReviewCommon) GitHubLabels() *Labels + type CodeReviewForDeck struct + HeadRefOID string + Mergeable string + Number int + Title string + func FromCodeReviewCommonToCodeReviewForDeck(crc *CodeReviewCommon) *CodeReviewForDeck + type Commit struct + OID githubql.String + Status CommitStatus + StatusCheckRollup StatusCheckRollup + type CommitNode struct + Commit Commit + type CommitStatus struct + Contexts []Context + type Commits struct + Nodes []struct{ ... } + type Context struct + Context githubql.String + Description githubql.String + State githubql.StatusState + type Controller struct + func NewController(ghcSync, ghcStatus github.Client, mgr manager, cfg config.Getter, ...) (*Controller, error) + func NewGerritController(mgr manager, cfgAgent *config.Agent, gc git.ClientFactory, ...) (*Controller, error) + func (c *Controller) History() *history.History + func (c *Controller) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (c *Controller) Shutdown() + func (c *Controller) Sync() error + type GerritProvider struct + func (p *GerritProvider) GetChangedFiles(org, repo string, number int) ([]string, error) + func (p *GerritProvider) GetPresubmits(identifier string, baseSHAGetter config.RefGetter, ...) ([]config.Presubmit, error) + func (p *GerritProvider) GetRef(org, repo, ref string) (string, error) + func (p *GerritProvider) GetTideContextPolicy(org, repo, branch string, baseSHAGetter config.RefGetter, ...) (contextChecker, error) + func (p *GerritProvider) Query() (map[string]CodeReviewCommon, error) + type GitHubProvider struct + func (gi *GitHubProvider) GetChangedFiles(org, repo string, number int) ([]string, error) + func (gi *GitHubProvider) GetPresubmits(identifier string, baseSHAGetter config.RefGetter, ...) ([]config.Presubmit, error) + func (gi *GitHubProvider) GetRef(org, repo, ref string) (string, error) + func (gi *GitHubProvider) GetTideContextPolicy(org, repo, branch string, baseSHAGetter config.RefGetter, pr *CodeReviewCommon) (contextChecker, error) + func (gi *GitHubProvider) Query() (map[string]CodeReviewCommon, error) + type Labels struct + Nodes []struct{ ... } + type Milestone struct + Title githubql.String + type MinCodeReviewCommon CodeReviewCommon + func (m *MinCodeReviewCommon) MarshalJSON() ([]byte, error) + func (m *MinCodeReviewCommon) UnmarshalJSON(b []byte) error + type PRNode struct + PullRequest PullRequest + type Pool struct + Action Action + BatchPending []CodeReviewCommon + Blockers []blockers.Blocker + Branch string + Error string + MissingPRs []CodeReviewCommon + Org string + PendingPRs []CodeReviewCommon + Repo string + SuccessPRs []CodeReviewCommon + Target []CodeReviewCommon + TenantIDs []string + type PoolForDeck struct + Action Action + BatchPending []MinCodeReviewCommon + Blockers []blockers.Blocker + Branch string + Error string + MissingPRs []MinCodeReviewCommon + Org string + PendingPRs []MinCodeReviewCommon + Repo string + SuccessPRs []MinCodeReviewCommon + Target []MinCodeReviewCommon + TenantIDs []string + func PoolToPoolForDeck(p *Pool) *PoolForDeck + type PullRequest struct + Author struct{ ... } + BaseRef struct{ ... } + Body githubql.String + CanBeRebased githubql.Boolean + Commits Commits + HeadRefName githubql.String + HeadRefOID githubql.String + Labels Labels + Mergeable githubql.MergeableState + Milestone *Milestone + Number githubql.Int + Repository struct{ ... } + ReviewDecision githubql.PullRequestReviewDecision + Title githubql.String + UpdatedAt githubql.DateTime + type StatusCheckRollup struct + Contexts StatusCheckRollupContext + type StatusCheckRollupContext struct + Nodes []CheckRunNode