File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments