Skip to content
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

Allow for commit prefix #160

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(api.ts): fix generatePrefix function to return undefined when con…
…fig.prefix is undefined instead of falsy
  • Loading branch information
amitayk committed May 4, 2023
commit b15a1001850f3580df9d049234eb0b818aa0c2c6
4 changes: 2 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
@@ -99,10 +99,10 @@ export const getOpenCommitLatestVersion = async (): Promise<
};

function generatePrefix(): string | undefined {
if (!config?.prefix) {
if (!config?.prefix !== undefined) {
return undefined;
}
return config.prefix;
return config?.prefix;
}

export const api = new OpenAi();