Help us shape the future of Go! Take the 2026 Go Developer Survey

gitUtils

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGitRemoteStatus

func CheckGitRemoteStatus(repo *git.Repository, githubToken string) (commonAncestor string, behind int, ahead int, err error)

func GetEmtpyGitProjectStatus

func GetEmtpyGitProjectStatus() *watchdog.GitProjectStatus

func GetGitHubVisibility

func GetGitHubVisibility(client *github.Client, owner string, repo string) (visibility string, is_private bool, err error)

returns the github visibility, and checks if the repo is private

func GetGitOpenIssues

func GetGitOpenIssues(client *github.Client, owner *string, repo *string) (int, error)

func GetGitOpenPR

func GetGitOpenPR(client *github.Client, owner *string, repo *string) (int, error)

func GetGitStatus

func GetGitStatus(worktree *git.Worktree) (git.Status, error)

func GetGitUser

func GetGitUser(repo *git.Repository) (string, error)

func GetRepoMetadata

func GetRepoMetadata(localRepo *git.Repository) (string, error)

getRepoMetadata inspects the local .git config to find the owner and repo name

func GetStashCount

func GetStashCount(worktree *git.Worktree) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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