Skip to content

feature: use desciptive checkin for message to check in includes #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/utils/commiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ export const commiter = async () => {
if (stderrStatus) throw new CliError(`An error occured: ${stderrStatus}`)

if (
stdoutStatus.includes('Changes not staged for commit') ||
stdoutStatus.includes('Untracked files')
stdoutStatus.includes('no changes added to commit') ||
stdoutStatus.includes(
'nothing added to commit but untracked files present'
)
) {
const type = stdoutStatus.includes('Changes not staged for commit')
const type = stdoutStatus.includes('no changes added to commit')
? 'modified'
: 'untracked'
const addStagedFiles = await confirm({
Expand Down