Skip to content

Commit

Permalink
chore: Release 3.4.4 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Oct 26, 2021
1 parent d40b0d4 commit 64af21f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

### [3.4.4](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.3...v3.4.4) (2021-10-26)


### Reverts

* Revert "fix: Consider merge commits for single commit validation (#127)" ([d40b0d4](https://github.com/amannn/action-semantic-pull-request/commit/d40b0d425a054807cc5e032a827cc5780f507630)), closes [#127](https://github.com/amannn/action-semantic-pull-request/issues/127)

### [3.4.3](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.2...v3.4.3) (2021-10-26)


Expand Down
12 changes: 1 addition & 11 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33345,17 +33345,7 @@ module.exports = async function run() {
per_page: 2
});

// GitHub does not count merge commits when deciding whether to use
// the PR title or a commit message for the squash commit message.
const nonMergeCommits = commits.filter(
(commit) => !commit.message.startsWith('Merge branch')
);

// If there is only one (non merge) commit present, GitHub will use
// that commit rather than the PR title for the title of a squash
// commit. To make sure a semantic title is used for the squash
// commit, we need to validate the commit title.
if (nonMergeCommits.length === 1) {
if (commits.length === 1) {
try {
await validatePrTitle(commits[0].commit.message, {
types,
Expand Down

0 comments on commit 64af21f

Please sign in to comment.