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 GetGitDiffIgnoringMoves(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
AddGitmoji checks if there's a known emoji for the type.
func CommitChanges ¶
CommitChanges creates a commit with the specified message.
func FilterLockFiles ¶
FilterLockFiles removes any lockfiles from the diff (like go.sum, yarn.lock, etc.).
func GetCurrentBranch ¶
GetCurrentBranch returns the currently checked-out branch name.
func GetGitDiffIgnoringMoves ¶ added in v0.6.0
GetGitDiffIgnoringMoves is like the old GetGitDiff but also
func GetHeadCommitMessage ¶ added in v0.1.0
GetHeadCommitMessage returns HEAD commit message text.
func IsGitRepository ¶ added in v0.3.0
IsGitRepository checks if we're in a valid git repo.
func PrependCommitType ¶ added in v0.3.0
PrependCommitType prepends "type: " (and possibly an emoji) to the commit message.
Types ¶
Click to show internal directories.
Click to hide internal directories.