release-it 18.1.0 → 18.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/plugin/GitRelease.js
CHANGED
|
@@ -456,6 +456,8 @@ class GitHub extends Release {
|
|
|
456
456
|
const { commit: template, excludeMatches = [] } = releaseNotes;
|
|
457
457
|
const commits = await this.getCommits();
|
|
458
458
|
|
|
459
|
+
if (this.options.commit) commits.pop();
|
|
460
|
+
|
|
459
461
|
return commits
|
|
460
462
|
.map(commit => {
|
|
461
463
|
commit.commit.subject = commit.commit.message.split('\n')[0];
|