rubberstamper

package
v0.0.0-...-4bca2e0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package rubberstamper contains some utilities for having the RubberStamper bot automatically submit a CL. See skbug.com/12124 for more details. These utilities are not in the gerrit package to avoid adding the heavy dependencies of that package. We choose not to use depot_tools, as that can be a pain to deploy on all the places that would need to use the rubberstamper.

Index

Constants

View Source
const (
	// PushRequestAutoSubmit is the destination of a git push that will upload the given branch
	// to Gerrit and have RubberStamper +1 it and submit it.
	PushRequestAutoSubmit = "HEAD:refs/for/" + git.MainBranch + "%" +

		"ready,notify=OWNER_REVIEWERS,l=Auto-Submit+1,r=" + RubberStamperUser

	// See skbug.com/12124 and go/rubber-stamper-user-guide for more on this user.
	RubberStamperUser = "rubber-stamper@appspot.gserviceaccount.com"
)

Variables

This section is empty.

Functions

func RandomChangeID

func RandomChangeID(ctx context.Context) string

RandomChangeID generates a probabilistically unique Gerrit ChangeId from the default rand source

func WithDeterministicChangeID

func WithDeterministicChangeID(ctx context.Context, changeID string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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