histogram

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrHistogramData

type PrHistogramData struct {
	Bucket                    time.Time `json:"bucket"`
	PrCount                   int       `json:"prs_count"`
	AcceptedPrs               int       `json:"accepted_prs"`
	OpenPrs                   int       `json:"open_prs"`
	ClosedPrs                 int       `json:"closed_prs"`
	DraftPrs                  int       `json:"draft_prs"`
	ActivePrs                 int       `json:"active_prs"`
	SpamPrs                   int       `json:"spam_prs"`
	PRVelocity                int       `json:"pr_velocity"`
	CollaboratorAssociatedPrs int       `json:"collaborator_associated_prs"`
	ContributorAssociatedPrs  int       `json:"contributor_associated_prs"`
	MemberAssociatedPrs       int       `json:"member_associated_prs"`
	NonAssociatedPrs          int       `json:"non_associated_prs"`
	OwnerAssociatedPrs        int       `json:"owner_associated_prs"`
	CommentsOnPrs             int       `json:"comments_on_prs"`
	ReviewCommentsOnPrs       int       `json:"review_comments_on_prs"`
}

type Service

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

Service is used to access the API "v2/histogram" endpoints and services

func NewHistogramService

func NewHistogramService(httpClient *http.Client, endpoint string) *Service

NewHistogramService returns a new histogram Service

func (*Service) PrsHistogram

func (s *Service) PrsHistogram(repo string, rangeVal int) ([]PrHistogramData, *http.Response, error)

PrsHistogram calls the "v2/histogram/pull-requests" endpoints

Jump to

Keyboard shortcuts

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