We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 980e461 commit 8f93cddCopy full SHA for 8f93cdd
1 file changed
lib/commands/git/commit-msg.js
@@ -100,7 +100,7 @@ git commit -m"feat(core)!: commit description"
100
if ( commit.scope ) {
101
102
// check strict scope
103
- if ( type.strictScope ) {
+ if ( type?.strictScope ) {
104
105
// commit scope is not valid
106
if ( !scopes.has( commit.scope ) ) {
@@ -115,7 +115,7 @@ git commit -m"feat(core)!: commit description"
115
}
116
117
// commit scope is required
118
- else if ( type.requireScope && scopes.size ) {
+ else if ( type?.requireScope && scopes.size ) {
119
return this.#throwError( "Commit scope is required.", { "types": true } );
120
121
0 commit comments