Skip to content

Commit 64af21f

Browse files
chore: Release 3.4.4 [skip ci]
1 parent d40b0d4 commit 64af21f

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
### [3.4.4](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.3...v3.4.4) (2021-10-26)
4+
5+
6+
### Reverts
7+
8+
* 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)
9+
310
### [3.4.3](https://github.com/amannn/action-semantic-pull-request/compare/v3.4.2...v3.4.3) (2021-10-26)
411

512

dist/index.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33345,17 +33345,7 @@ module.exports = async function run() {
3334533345
per_page: 2
3334633346
});
3334733347

33348-
// GitHub does not count merge commits when deciding whether to use
33349-
// the PR title or a commit message for the squash commit message.
33350-
const nonMergeCommits = commits.filter(
33351-
(commit) => !commit.message.startsWith('Merge branch')
33352-
);
33353-
33354-
// If there is only one (non merge) commit present, GitHub will use
33355-
// that commit rather than the PR title for the title of a squash
33356-
// commit. To make sure a semantic title is used for the squash
33357-
// commit, we need to validate the commit title.
33358-
if (nonMergeCommits.length === 1) {
33348+
if (commits.length === 1) {
3335933349
try {
3336033350
await validatePrTitle(commits[0].commit.message, {
3336133351
types,

0 commit comments

Comments
 (0)