Skip to content

Commit 287522a

Browse files
committed
Create a fresh copy of the base repository config
Signed-off-by: Kyle Harding <[email protected]>
1 parent d22c065 commit 287522a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/settings.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,10 @@ ${this.results.reduce((x, y) => {
298298

299299
async updateRepos(repo) {
300300
this.subOrgConfigs = this.subOrgConfigs || await this.getSubOrgConfigs()
301-
let repoConfig = this.config.repository
301+
// Create a fresh copy of the base repository config
302+
let repoConfig = this.config.repository ? Object.assign({}, this.config.repository) : {}
302303
if (repoConfig) {
303-
repoConfig = Object.assign(repoConfig, { name: repo.repo, org: repo.owner })
304+
repoConfig = Object.assign({}, repoConfig, { name: repo.repo, org: repo.owner })
304305
}
305306

306307
const subOrgConfig = this.getSubOrgConfig(repo.repo)

0 commit comments

Comments
 (0)