package
0.0.0-20230504140204-c4ec94d11fd6
Repository: https://github.com/kathleenfrench/pls.git
Documentation: pkg.go.dev
# Functions
CheckForGitUsername checks for a git username set in the expected location.
CheckoutMasterAndPull checks out the current branch to master and pulls down the latest.
CloneRepository accepts an ssh url and clones a repository to a specified directory.
CurrentBranch returns the name of the branch in the current working directory.
CurrentRepositoryName returns the name of the repository of the current working directory from any of its subdirectories.
CurrentRepositoryOrganization parses the local git config's remote.origin.url to determine the 'organization' or top-level 'user' of a repository.
ExtractOrganizationAndRepoNameFromRepoURL parses the organization/user and repository name from the repo URL - the usecase here is when results are returned from search and information about the repository/organization aren't available absent parsing this value and/or making an additional API call example RepositoryURL: "https://api.github.com/repos/counterThreat/chess_app",.
GetCurrentGitBaseURL returns the current base git url.
HasUnpushedChangesOrCommits checks whether there are unpushed local commits.
IsEnterpriseGit is a helper for determining whether or not the active repository is from github.com or an enterprise instance.
NewClient initializes a new github client.
NewEnterpriseClient creates a new github enterprise client.
PushBranchToOrigin pushes the current working directory's branch to origin.
RemoteRefExists returns a bool for whether a remote reference to a pull request exists.
RemoteRefOfCurrentBranchExists checks whether a remote ref of the current working directory's branch exists.