contributors

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: 8 Imported by: 0

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