candidates

package
v0.0.0-...-54c1940 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidates

type Candidates struct {
	Refs     map[string]Commit `json:"refs"`
	Releases map[string]Commit `json:"releases"`
	Commits  map[string]Commit `json:"commits"`
	// contains filtered or unexported fields
}

func Load

func Load(f string) (*Candidates, error)

func New

func New(ghc *github.Client, refs []string, lastDays int, lastReleases int) (*Candidates, error)

func (*Candidates) List

func (c *Candidates) List() map[string]Commit

func (*Candidates) Sorted

func (c *Candidates) Sorted() []Ref

type Commit

type Commit struct {
	SHA    string    `json:"sha"`
	Date   time.Time `json:"date"`
	Merged bool      `json:"merged,omitempty"`
}

type Ref

type Ref struct {
	Name   string
	Commit Commit
}

Jump to

Keyboard shortcuts

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