merges

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Title     string
	Number    int
	CreatedAt time.Time
	MergedAt  time.Time
}

Info struct

type Merger

type Merger struct {
	Client  *github.Client
	PerPage int
	Page    int
}

Merger is a module merge

func New

func New(options ...Option) *Merger

New creates a new merger instance

func (*Merger) GetTimes

func (m *Merger) GetTimes(owner, repo string) ([]Info, error)

GetTimes of each merged pr

type Option

type Option func(*Merger)

Option function

func WithClient

func WithClient(c *github.Client) Option

WithClient sets a github client

func WithPage

func WithPage(p int) Option

WithPage sets a page number

func WithPerPage

func WithPerPage(p int) Option

WithPerPage sets a number of records per page

Jump to

Keyboard shortcuts

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