github_crs

package
v0.0.0-...-431bee0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package github_crs provides a client for Gold's interaction with the GitHub code review system.

Index

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

func New(client *http.Client, repo string) *CRSImpl

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

func (c *CRSImpl) CommentOn(ctx context.Context, clID, message string) error

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.

func (*CRSImpl) System

func (c *CRSImpl) System() string

System implements the code_review.Client interface.

Jump to

Keyboard shortcuts

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