backport
Version:
A CLI tool that automates the process of backporting commits
17 lines • 721 B
JavaScript
import { uniq } from 'lodash-es';
import { getConfiguredTargetPRLabels } from './get-configured-target-pr-labels.js';
import { getSourcePRLabelsToCopy } from './get-source-pr-labels-to-copy.js';
export function getTargetPRLabels({ interactive, targetPRLabels, commits, targetBranch, copySourcePRLabels, }) {
const configuredTargetPRLabels = getConfiguredTargetPRLabels({
commits,
targetBranch,
targetPRLabels,
interactive,
});
const sourcePRLabelsToCopy = getSourcePRLabelsToCopy({
commits,
copySourcePRLabels: copySourcePRLabels,
});
return uniq([...configuredTargetPRLabels, ...sourcePRLabelsToCopy]);
}
//# sourceMappingURL=get-target-prlabels.js.map