Add base branches as configuration

This commit is contained in:
Jorge Navarro
2021-04-30 01:28:36 +02:00
parent 088993b64c
commit c49b84ec4a
7 changed files with 92 additions and 2 deletions
+5
View File
@@ -130,7 +130,11 @@ export class ReleaseNotes {
// return only the pull requests associated with this release
return pullRequests.filter(pr => {
const baseBranches = configuration.base_branches || DefaultConfiguration.base_branches
const allBaseBranchesAllowed = baseBranches.length === 0
return releaseCommitHashes.includes(pr.mergeCommitSha)
&& (allBaseBranchesAllowed || baseBranches.includes(pr.baseBranch))
})
}
@@ -157,6 +161,7 @@ export class ReleaseNotes {
number: 0,
title: commit.summary,
htmlURL: '',
baseBranch: '',
mergedAt: commit.date,
mergeCommitSha: '',
author: commit.author || '',