internal

package
v0.0.0-...-ae1d494 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PrettyFormat = "--pretty=format:%H\u00A0%cI\u00A0%an\u00A0%s"

Variables

This section is empty.

Functions

func GetBody

func GetBody(commits []Commit, assign []string) string

func GetBodyV1

func GetBodyV1(target Commit, commits []Commit, assign []string) string

func RunBingo

func RunBingo(ctx context.Context, logger *logrus.Entry) error

func RunCommand

func RunCommand(logger *logrus.Entry, cmd *exec.Cmd) (string, error)

func SetCommitter

func SetCommitter(ctx context.Context, logger *logrus.Entry, name string, email string) error

func Table

func Table(logger *logrus.Logger, commits []Commit, repoBase string)

func WithDir

func WithDir(command *exec.Cmd, dir string) *exec.Cmd

func WithEnv

func WithEnv(command *exec.Cmd, env ...string) *exec.Cmd

Types

type Commit

type Commit struct {
	Date    time.Time `json:"date"`
	Hash    string    `json:"hash,omitempty"`
	Author  string    `json:"author,omitempty"`
	Message string    `json:"message,omitempty"`
	Repo    string    `json:"repo,omitempty"`
}

func Info

func Info(ctx context.Context, logger *logrus.Entry, sha, dir string) (Commit, error)

func ParseFormat

func ParseFormat(format string) (Commit, error)

Jump to

Keyboard shortcuts

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