version

package
v0.0.0-...-59132f5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	Name string    `json:"name"`
	SHA  string    `json:"sha"` // Commit SHA, e.g. c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc
	Date time.Time `json:"date"`
}

func ListGitHubTags

func ListGitHubTags(owner, repo string) ([]*Tag, error)

ListGitHubTags fetches git repo tags via GitHub API. It return tags in order. Could support pagination. Returns up to 30 by default.

func ListGitTags

func ListGitTags(url string) ([]*Tag, error)

ListGitTags fetches git repo tags via git. It returns disordered tags.

Jump to

Keyboard shortcuts

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