github

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Release

type Release struct {
	ID          uint   `json:"id"`
	TagName     string `json:"tag_name"`
	Body        string `json:"body"`
	Draft       bool   `json:"draft"`
	PreRelease  bool   `json:"prerelease"`
	CreatedAt   string `json:"created_at"`
	PublishedAt string `json:"published_at"`
	HTMLURL     string `json:"html_url"`
	NodeID      string `json:"node_id"`

	HTML      string
	CardClass string

	MajorVersion string

	// Specifies the commitish value that determines where the Git tag is
	// created from. Can be any branch or commit SHA. Unused if the Git tag
	// already exists. Default: the repository’s default branch (usually master).
	TargetCommitish string `json:"target_commitish"`
}

func (*Release) ParseMarkdown

func (r *Release) ParseMarkdown()

func (*Release) Process

func (r *Release) Process()

type Repository

type Repository struct {
	ID          uint   `json:"id"`
	Name        string `json:"name"`
	Path        string `json:"full_name"`
	Description string `json:"description"`
	HTMLUrl     string `json:"html_url"`

	Targets []string
}

func GetRepository

func GetRepository(repo string) (*Repository, error)

func (*Repository) GetReleases

func (r *Repository) GetReleases() ([]*Release, error)

Jump to

Keyboard shortcuts

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