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

fix(WorkItemFilters): Support multiple workItem filters #1429

Merged
merged 5 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
azlam-abdulsalam marked this conversation as resolved.
Show resolved Hide resolved
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