bulkreview

package module
v0.0.0-...-037aa36 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

README

Build

  1. git clone this repository
  2. cd gg
  3. go build ./cmd/...

Install-only instructions

go install chromium.googlesource.com/chromiumos/third_party/adhd.git/devtools/bulkreview/cmd/...@latest

Command Syntax

bulkreview chromium:12345 [--cq=#] [--cr=#] [--v=#] \
    [--follow-relation] [--follow-cq-depend] [--stalk]
	[--abandon] [--abandon-reason="reason"] \
	[--limit=#]

Documentation

Index

Constants

View Source
const (
	RevisionCurrent = "current"
	UserSelf        = "self"
)

Variables

This section is empty.

Functions

func NewGerritClient

func NewGerritClient(gerritURL string) (*gerrit.Client, error)

Types

type Change

type Change struct {
	GerritHost GerritHost // e.g. chromium, chrome-internal
	ID         string     // change ID or number

	Revision int // The revision we should vote on
}

Change identifys a change on Gerrit

func CheckKernelUpstream

func CheckKernelUpstream(c *Client, cl Change) (Change, bool)

Check if the CL has Return the checked CL with revision information, and a bool indicating whether it has:

No changes have been detected between this change and its upstream source!

from sean@poorly.run.

func FindDependencies

func FindDependencies(opt DependencyResolverOptions, roots ...Change) (cls []Change, err error)

func ParseChange

func ParseChange(s string) (Change, error)

ParseChange parses a change in the following form: - 12345 - *12345 - chromium:12345 - chrome-internal:12345 - https://crrev.com/c/12345 - https://crrev.com/i/12345

func (Change) CrosTryjobID

func (cl Change) CrosTryjobID() string

returns the ID as understood by `cros tryjob`

func (Change) String

func (cl Change) String() string

func (Change) URL

func (cl Change) URL() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Host

func (c *Client) Host(h GerritHost) *gerrit.Client

type DependencyResolverOptions

type DependencyResolverOptions struct {
	C                   *Client
	FollowRelationChain bool
	FollowCqDepend      bool
	Stalk               bool
}

type GerritHost

type GerritHost string

func (GerritHost) URL

func (h GerritHost) URL() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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