Skip to content

Commit

Permalink
fix: fix #107
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon authored Sep 20, 2022
1 parent a1b8105 commit b7a3e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitCommitConvention.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module.exports = function (convention, commitAnchor = 'HEAD') {
} else {
const msgRevertMatch = commit.subject.match(convention.msgRevertRegex);
if (msgRevertMatch) {
conventionalSubject.subject = msgRevertMatch.groups.description;
conventionalSubject.subject = msgRevertMatch.groups.subject;
conventionalSubject = parseCommitSubject(conventionalSubject);
conventionalSubject.revert = !conventionalSubject.revert; // negate revert of revert commit
} else {
Expand Down

0 comments on commit b7a3e41

Please sign in to comment.