Documentation
¶
Index ¶
- func ApplyDiffs(diffs []run.DiffResult)
- func CheckForChangesNotOnRemote() (bool, error)
- func DetectProvider(remoteUrl string) string
- func EnsureGitignore(appendStr string) error
- func GetCurrentBranch() (string, error)
- func GetCurrentTag() (string, error)
- func GetLastCommitHash() (string, error)
- func GetRemoteUrl() (string, error)
- func ParseRepoBaseUrl(remoteUrl string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDiffs ¶ added in v0.20.0
func ApplyDiffs(diffs []run.DiffResult)
func CheckForChangesNotOnRemote ¶ added in v0.20.0
func DetectProvider ¶ added in v0.26.0
DetectProvider returns the git hosting provider inferred from the remote URL. Supported values: "github", "gitlab", "azuredevops", "bitbucket", or "" for unknown.
func EnsureGitignore ¶
func GetCurrentBranch ¶ added in v0.19.0
func GetCurrentTag ¶ added in v0.26.0
func GetLastCommitHash ¶ added in v0.16.0
func GetRemoteUrl ¶ added in v0.26.0
func ParseRepoBaseUrl ¶ added in v0.26.0
ParseRepoBaseUrl converts a git remote URL (SSH or HTTP/HTTPS) into a browsable base URL. SSH remotes are converted to HTTPS; HTTP/HTTPS remotes preserve their original scheme. Supports GitHub, GitLab, Azure DevOps, and Bitbucket.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.