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 ¶
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.
Click to show internal directories.
Click to hide internal directories.