git

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name     string
	Email    string
	Identity string
}

func NewAuthor

func NewAuthor(identity string) (*Author, error)

type AuthorFinder added in v0.3.0

type AuthorFinder func() (*Author, error)

func GithubActionsAuthorFinder added in v0.3.0

func GithubActionsAuthorFinder() AuthorFinder

type Commit

type Commit struct {
	Message string
	Author  *Author
}

type Git

type Git struct {
	// contains filtered or unexported fields
}

func NewGit

func NewGit(binary string, authorFinder AuthorFinder) *Git

func (*Git) AddFile

func (g *Git) AddFile(ctx context.Context, filename string) error

func (*Git) Commit

func (g *Git) Commit(ctx context.Context, commit *Commit) error

func (*Git) GetAddedAndModifiedFiles

func (g *Git) GetAddedAndModifiedFiles(ctx context.Context) ([]string, error)

func (*Git) Push

func (g *Git) Push(ctx context.Context) error

Jump to

Keyboard shortcuts

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