state

package module
v0.0.0-...-83b4075 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: BSD-3-Clause Imports: 0 Imported by: 17

Documentation

Overview

Package state defines states for domain types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change string

Change represents the possible states of a change.

const (
	ChangeOpen   Change = "open"   // A change that is still open.
	ChangeClosed Change = "closed" // A change that has been closed without being merged.
	ChangeMerged Change = "merged" // A change that has been closed by being merged.
)

The possible states of a change.

type Issue

type Issue string

Issue represents the possible states of an issue.

const (
	IssueOpen   Issue = "open"   // An issue that is still open.
	IssueClosed Issue = "closed" // An issue that has been closed.
)

The possible states of an issue.

type Review

type Review int8

Review represents the possible states of a change review.

const (
	ReviewPlus2   Review = +2 // Looks good to me, approved.
	ReviewPlus1   Review = +1 // Looks good to me, but someone else must approve.
	ReviewNoScore Review = 0  // No score, just a comment.
	ReviewMinus1  Review = -1 // I would prefer this is not merged as is, and here's why.
	ReviewMinus2  Review = -2 // This shall not be merged, and here's why.
)

Jump to

Keyboard shortcuts

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