dashboard

package
v0.0.0-...-1d03baa Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2013 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateCLLater

func UpdateCLLater(c appengine.Context, n string, delay time.Duration)

Types

type CL

type CL struct {
	Number string // e.g. "5903061"
	Closed bool
	Owner  string // email address

	Created, Modified time.Time

	Description  []byte `datastore:",noindex"`
	FirstLine    string `datastore:",noindex"`
	LGTMs        []string
	NotLGTMs     []string
	LastUpdateBy string // author of most recent review message
	LastUpdate   string `datastore:",noindex"` // first line of most recent review message

	// Mail information.
	Subject       string   `datastore:",noindex"`
	Recipients    []string `datastore:",noindex"`
	LastMessageID string   `datastore:",noindex"`

	// These are person IDs (e.g. "rsc"); they may be empty
	Author   string
	Reviewer string
}

CL represents a code review.

func (*CL) DisplayOwner

func (cl *CL) DisplayOwner() string

DisplayOwner returns the CL's owner, either as their email address or the person ID if it's a reviewer. It is for display only.

func (*CL) FirstLineHTML

func (cl *CL) FirstLineHTML() template.HTML

func (*CL) LGTMHTML

func (cl *CL) LGTMHTML() template.HTML

func (*CL) ModifiedAgo

func (cl *CL) ModifiedAgo() string

func (*CL) NotLGTMHTML

func (cl *CL) NotLGTMHTML() template.HTML

func (*CL) Reviewed

func (cl *CL) Reviewed() bool

Reviewed reports whether the reviewer has replied to the CL. The heuristic is that the CL has been replied to if it is LGTMed or if the last CL message was from the reviewer.

Jump to

Keyboard shortcuts

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