target

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
	Number                      int      `json:"number"`
	Title                       string   `json:"title"`
	Body                        string   `json:"body"`
	URL                         string   `json:"url"`
	Author                      string   `json:"author"`
	Labels                      []string `json:"labels"`
	Assignees                   []string `json:"assignees"`
	Reviewers                   []string `json:"reviewers"`
	CodeOwners                  []string `json:"code_owners"`
	IsIssue                     bool     `json:"is_issue"`
	IsPullRequest               bool     `json:"is_pull_request"`
	IsApproved                  bool     `json:"is_approved"`
	IsReviewRequired            bool     `json:"is_review_required"`
	IsChangeRequested           bool     `json:"is_change_requested"`
	Mergeable                   bool     `json:"mergeable"`
	HoursElapsedSinceCreated    int      `json:"hours_elapsed_since_created"`
	HoursElapsedSinceUpdated    int      `json:"hours_elapsed_since_updated"`
	NumberOfComments            int      `json:"number_of_comments"`
	LatestCommentAuthor         string   `json:"latest_comment_author"`
	LatestCommentBody           string   `json:"latest_comment_body"`
	NumberOfConsecutiveComments int      `json:"-"`
}

Target is Issue or Pull request

func (*Target) Dump

func (t *Target) Dump() map[string]interface{}

func (*Target) NoCodeOwnerReviewers

func (t *Target) NoCodeOwnerReviewers() []string

type Targets

type Targets map[int]*Target

func (Targets) MaxDigits

func (targets Targets) MaxDigits() int

Jump to

Keyboard shortcuts

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