Documentation ¶
Overview ¶
Package github_crs provides a client for Gold's interaction with the GitHub code review system.
Index ¶
- type CRSImpl
- func (c *CRSImpl) CommentOn(ctx context.Context, clID, message string) error
- func (c *CRSImpl) GetChangelist(ctx context.Context, id string) (code_review.Changelist, error)
- func (c *CRSImpl) GetChangelistIDForCommit(ctx context.Context, commit *vcsinfo.LongCommit) (string, error)
- func (c *CRSImpl) GetPatchset(ctx context.Context, clID, psID string, psOrder int) (code_review.Patchset, error)
- func (c *CRSImpl) System() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRSImpl ¶
type CRSImpl struct {
// contains filtered or unexported fields
}
func New ¶
New returns a new instance of CRSImpl, ready to target a single GitHub repo. repo should be the user/repo, e.g. "google/skia", "flutter/flutter", etc.
func (*CRSImpl) CommentOn ¶
CommentOn implements the code_review.Client interface. https://developer.github.com/v3/issues/comments/#create-a-comment
func (*CRSImpl) GetChangelist ¶
func (c *CRSImpl) GetChangelist(ctx context.Context, id string) (code_review.Changelist, error)
GetChangelist implements the code_review.Client interface.
func (*CRSImpl) GetChangelistIDForCommit ¶
func (c *CRSImpl) GetChangelistIDForCommit(ctx context.Context, commit *vcsinfo.LongCommit) (string, error)
GetChangelistIDForCommit implements the code_review.Client interface.
func (*CRSImpl) GetPatchset ¶
func (c *CRSImpl) GetPatchset(ctx context.Context, clID, psID string, psOrder int) (code_review.Patchset, error)
GetPatchset implements the code_review.Client interface.
Click to show internal directories.
Click to hide internal directories.