gitops

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAll

func AddAll(repoPath string) error

AddAll stages all changes.

func CheckoutBranch

func CheckoutBranch(repoPath, branch string) error

CheckoutBranch checks out a branch.

func Commit

func Commit(repoPath, message string) error

Commit creates a commit with the given message.

func CreateBranch

func CreateBranch(repoPath, branch string) error

CreateBranch creates and checks out a new branch from the current HEAD.

func CreatePR

func CreatePR(repoPath string) error

CreatePR uses gh CLI to create a pull request from the current branch.

func CurrentBranch

func CurrentBranch(repoPath string) (string, error)

CurrentBranch returns the current branch name.

func DeleteBranch

func DeleteBranch(repoPath, branch string) error

DeleteBranch deletes a local branch.

func HasChanges

func HasChanges(repoPath string) (bool, error)

HasChanges checks if there are staged changes to commit.

func IsClean

func IsClean(repoPath string) (bool, error)

IsClean checks if the repo working tree is clean (no uncommitted changes).

func Push

func Push(repoPath, remote, branch string) error

Push pushes the current branch to the specified remote.

Types

This section is empty.

Jump to

Keyboard shortcuts

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