Skip to content

Commit c835941

Browse files
committed
fix: fix log comman behaviour
1 parent 1559fc8 commit c835941

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

lib/commands/log.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ export default class extends Command {
1414
"type": "boolean",
1515
},
1616
},
17-
"release": {
18-
"short": "r",
19-
"description": "show chamges for release",
20-
"default": false,
21-
"schema": {
22-
"type": "boolean",
23-
},
24-
},
2517
"stable": {
2618
"short": "s",
2719
"description": "compare with the previous stable release",
@@ -54,7 +46,9 @@ export default class extends Command {
5446
// get changelog
5547
res = await git.getChangelog( {
5648
"commitRef": process.cli.arguments.release,
57-
"release": process.cli.options.release,
49+
"release": process.cli.arguments.release
50+
? false
51+
: true,
5852
"stable": process.cli.options.stable,
5953
"commitTypes": pkg.cliConfig?.commits.types,
6054
} );

0 commit comments

Comments
 (0)