histogram

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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