Skip to content

Commit

Permalink
fix(commit.ts): change config.gitpush to config.OCO_GITPUSH to match …
Browse files Browse the repository at this point in the history
…the updated config key name

fix(config.ts): change CONFIG_KEYS.gitpush to CONFIG_KEYS.OCO_GITPUSH to
match the updated config key name The config key name has been changed
from "gitpush" to "OCO_GITPUSH" for consistency and clarity. This change
ensures that the code references the correct key when checking the value
of the config.
  • Loading branch information
Moret84 committed Aug 24, 2023
1 parent 3ddcd9d commit 619249a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ${chalk.grey('β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”')}`
const remotes = await getGitRemotes();

// user isn't pushing, return early
if (config?.gitpush === false)
if (config?.OCO_GITPUSH === false)
return

if (!remotes.length) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const configValidators = {

[CONFIG_KEYS.OCO_GITPUSH](value: any) {
validateConfig(
CONFIG_KEYS.gitpush,
CONFIG_KEYS.OCO_GITPUSH,
typeof value === 'boolean',
'Must be true or false'
);
Expand Down

0 comments on commit 619249a

Please sign in to comment.