fix: don’t Object.assign first upgrade over config (#8892)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Rhys Arkins 2021-02-27 09:48:11 +01:00 committed by GitHub
parent 34418825df
commit bc10487082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -284,8 +284,6 @@ export async function ensurePr(
config.upgrades.push(upgrade); config.upgrades.push(upgrade);
} }
// Update the config object
Object.assign(config, upgrades[0]);
config.hasReleaseNotes = config.upgrades.some((upg) => upg.hasReleaseNotes); config.hasReleaseNotes = config.upgrades.some((upg) => upg.hasReleaseNotes);
const releaseNoteRepos: string[] = []; const releaseNoteRepos: string[] = [];