git

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package git contains types and engines to work with git repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changelog

type Changelog struct {
	TagName   string
	ClosedPRs []PullRequest
}

Changelog represents a basic changelog.

type Commit

type Commit struct {
	SHA        string
	Committer  User
	Author     User
	ParentSHAs []string
}

Commit represents a repository commit.

func (Commit) Empty

func (c Commit) Empty() bool

Empty returns true if SHA of the commit is not specified.

type CommitsComparison

type CommitsComparison struct {
	Commits      []Commit
	TotalCommits int
}

CommitsComparison is the result of comparing two commits.

type PullRequest

type PullRequest struct {
	Number   int
	Title    string
	Body     string
	Author   User
	Labels   []string
	ClosedAt time.Time
	Branch   string
	URL      string
}

PullRequest represents a pull/merge request from the remote repository.

type Tag

type Tag struct {
	Name   string
	Commit Commit
}

Tag represents a repository tag.

func (Tag) Empty

func (t Tag) Empty() bool

Empty returns true if the tag is empty.

type User

type User struct {
	Date     time.Time
	Username string
	Email    string
}

User holds user data.

func (User) Empty

func (u User) Empty() bool

Empty returns true if user is empty.

Directories

Path Synopsis
Package engine contains interfaces for different git providers.
Package engine contains interfaces for different git providers.

Jump to

Keyboard shortcuts

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