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.
@@ -18,7 +18,8 @@ class GitRelease extends GitBase {
18
18
  'tagMatch',
19
19
  'getLatestTagFromAllRefs',
20
20
  'pushRepo',
21
- 'changelog'
21
+ 'changelog',
22
+ 'commit'
22
23
  ]);
23
24
  return _.defaults(baseOptions, gitOptions);
24
25
  }
@@ -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];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-it",
3
- "version": "18.1.0",
3
+ "version": "18.1.1",
4
4
  "description": "Generic CLI tool to automate versioning and package publishing-related tasks.",
5
5
  "keywords": [
6
6
  "build",