Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Fix multiple workItem filters
Browse files Browse the repository at this point in the history
spread out the filters before pushing
  • Loading branch information
brandonmikeska committed Oct 20, 2023
1 parent dca75e6 commit 801656d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class ReleaseImpl {
for (const releaseDefinition of this.props.releaseDefinitions) {
releaseName = releaseName.concat(releaseDefinition.release, '-');
if (releaseDefinition.changelog) {
workitemFilters.push(releaseDefinition.changelog?.workItemFilters);
workitemFilters.push(...releaseDefinition.changelog?.workItemFilters);
if (releaseDefinition.changelog.limit > limit) limit = releaseDefinition.changelog.limit;
workItemUrl = releaseDefinition.changelog.workItemUrl;
showAllArtifacts = releaseDefinition.changelog.showAllArtifacts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('Given a WorkItemUpdater', () => {
const resourceDir: string = path.join(__dirname, 'resources');

it('should update latestRelease with work items', () => {
new WorkItemUpdater(latestRelease, ['NGV-[0-9]{3,4}']).update();
new WorkItemUpdater(latestRelease, ['NGV-[0-9]{3,4}', 'TEST-[0-9]{3,4}']).update();

expect(latestRelease).toEqual(
fs.readJSONSync(
Expand Down

0 comments on commit 801656d

Please sign in to comment.