vcs

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 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 Branch

type Branch struct {
	Name       string
	LastCommit Commit
}

Branch represents a git branch.

type Commit

type Commit struct {
	ID              string
	MessageHeadline string
	CommittedAt     time.Time
	Author          string
}

Commit represents a git commit.

type Issue

type Issue struct {
	ID        int
	Body      string
	Title     string
	Labels    Labels
	CreatedAt time.Time
}

Issue represents an issue.

type Label

type Label struct {
	Name  string
	Color string
}

Label represents a label.

func (Label) View

func (l Label) View() string

View returns a string representation of the label.

type Labels

type Labels []Label

Labels represents a list of labels.

func (Labels) View

func (ll Labels) View() string

View returns a string representation of the labels.

type PullRequest

type PullRequest struct {
	ID        int
	Body      string
	Title     string
	Labels    Labels
	CreatedAt time.Time
}

PullRequest represents a pull request.

type Release

type Release struct {
	Name         string
	TagName      string
	PublishedAt  time.Time
	URL          string
	CommitsSince []Commit
}

Release represents a release.

type Repo

type Repo struct {
	Owner         string
	Name          string
	NameWithOwner string
	URL           string
	Description   string
	Stargazers    int
	Watchers      int
	Forks         int
	Commits       int
	LastRelease   Release
}

Repo represents a repository.

func ReposWithRelease

func ReposWithRelease(repos []Repo) []Repo

ReposWithRelease returns all the repos that have a release.

type User

type User struct {
	Login     string
	Name      string
	AvatarURL string
	URL       string
}

User represents a user.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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