Skip to content
Snippets Groups Projects
Commit 5ab1cefe authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(cache): set semanticCommits in each upgrade

parent 73cac44d
Branches
Tags 34.62.1
No related merge requests found
import { RenovateConfig, getConfig } from '../../../../test/util';
import { flattenUpdates } from './flatten';
jest.mock('../../../util/git/semantic');
let config: RenovateConfig;
beforeEach(() => {
......
......@@ -6,6 +6,7 @@ import {
import type { RenovateConfig } from '../../../config/types';
import { getDefaultConfig } from '../../../modules/datasource';
import { get } from '../../../modules/manager';
import { detectSemanticCommits } from '../../../util/git/semantic';
import { applyPackageRules } from '../../../util/package-rules';
import { regEx } from '../../../util/regex';
import { parseUrl } from '../../../util/url';
......@@ -187,6 +188,12 @@ export async function flattenUpdates(
}
}
}
if (config.semanticCommits === 'auto') {
const semanticCommits = await detectSemanticCommits();
for (const update of updates) {
update.semanticCommits = semanticCommits;
}
}
return updates
.filter((update) => update.enabled)
.map(({ vulnerabilityAlerts, ...update }) => update)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment