git

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 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 Commit

type Commit struct {
	SHA         string
	ParentSHAs  []string
	Message     string
	CommittedAt time.Time
	AuthoredAt  time.Time
}

Commit represents a repository commit.

type CommitsComparison

type CommitsComparison struct {
	Commits      []Commit
	TotalCommits int
}

CommitsComparison is the result of comparing two commits.

type PullRequest

type PullRequest struct {
	Number         int       `yaml:"number"`
	Title          string    `yaml:"title"`
	Body           string    `yaml:"body"`
	Author         User      `yaml:"author"`
	Labels         []string  `yaml:"labels"`
	ClosedAt       time.Time `yaml:"closed_at"`
	SourceBranch   string    `yaml:"source_branch"`
	TargetBranch   string    `yaml:"target_branch"`
	URL            string    `yaml:"url"`
	ReceivedBySHAs []string  `yaml:"received_by_shas"`
	Assignees      []User    `yaml:"assignees"`
}

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

type Tag

type Tag struct {
	Name   string
	Commit Commit
}

Tag represents a repository tag.

type User

type User struct {
	Username string `yaml:"username"`
	Email    string `yaml:"email"`
}

User holds user data.

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