Documentation
¶
Index ¶
- func AddGitmoji(message, commitType string) string
- func CommitChanges(ctx context.Context, commitMessage string) error
- func FilterLockFiles(diff string, lockFiles []string) string
- func GetCurrentBranch(ctx context.Context) (string, error)
- func GetGitDiff(ctx context.Context) (string, error)
- func GetHeadCommitMessage(ctx context.Context) (string, error)
- func IsGitRepository(ctx context.Context) bool
- func PrependCommitType(message, commitType string, withEmoji bool) string
- type DiffChunk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGitmoji ¶ added in v0.3.0
func CommitChanges ¶
CommitChanges creates a commit with the provided message.
func FilterLockFiles ¶
func GetHeadCommitMessage ¶ added in v0.1.0
func IsGitRepository ¶ added in v0.3.0
func PrependCommitType ¶ added in v0.3.0
Types ¶
type DiffChunk ¶ added in v0.1.0
DiffChunk represents a section of a Git diff.
func ParseDiffToChunks ¶ added in v0.1.0
ParseDiffToChunks splits a diff string into chunks.
Click to show internal directories.
Click to hide internal directories.