contributors

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: 8 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 ContribResponse

type ContribResponse struct {
	Data []DbContributor   `json:"data"`
	Meta services.MetaData `json:"meta"`
}

type DbContributor

type DbContributor struct {
	AuthorLogin string    `json:"author_login"`
	UserID      int       `json:"user_id"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type Service

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

Service is the Contributors service used for accessing the "v2/contributors" endpoint and API services

func NewContributorsService

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

NewContributorsService returns a new contributors Service

func (*Service) AlumniPullRequestContributors

func (s *Service) AlumniPullRequestContributors(repos []string, rangeVal int) (*ContribResponse, *http.Response, error)

AlumniPullRequestContributors calls the "v2/contributors/insights/alumni" API endpoint

func (*Service) NewPullRequestContributors

func (s *Service) NewPullRequestContributors(repos []string, rangeVal int) (*ContribResponse, *http.Response, error)

NewPullRequestContributors calls the "v2/contributors/insights/new" API endpoint

func (*Service) RecentPullRequestContributors

func (s *Service) RecentPullRequestContributors(repos []string, rangeVal int) (*ContribResponse, *http.Response, error)

RecentPullRequestContributors calls the "v2/contributors/insights/recent" API endpoint

func (*Service) RepeatPullRequestContributors

func (s *Service) RepeatPullRequestContributors(repos []string, rangeVal int) (*ContribResponse, *http.Response, error)

RepeatPullRequestContributors calls the "v2/contributors/insights/repeat" API endpoint

func (*Service) SearchPullRequestContributors

func (s *Service) SearchPullRequestContributors(repos []string, rangeVal int) (*ContribResponse, *http.Response, error)

SearchPullRequestContributors calls the "v2/contributors/search"

Jump to

Keyboard shortcuts

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