gitstatus

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIStatus

type CIStatus struct {
	Status     string // "completed", "in_progress", "queued"
	Conclusion string // "success", "failure", "cancelled", etc.
	Name       string // workflow name
}

CIStatus represents the latest CI workflow run status.

type LocalCommit

type LocalCommit struct {
	SHA     string
	Message string
	Author  string
	Date    string // ISO format
}

LocalCommit represents an unpushed local commit.

type RepoStatus

type RepoStatus struct {
	Remote          string // owner/repo
	Path            string // local path
	Branch          string
	Uncommitted     int // staged + unstaged changed files
	Unpushed        int // commits ahead of upstream
	UnpushedCommits []LocalCommit
	HasUpstream     bool // whether the branch tracks a remote
	CI              *CIStatus
	Error           error
}

RepoStatus holds the local git status for a repo.

func Check

func Check(remote, path string) RepoStatus

Check gathers the git status for a local repo at the given path.

Jump to

Keyboard shortcuts

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