Skip to content

Commit c971041

Browse files
decyjphrCopilot
andauthored
Update index.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6b358e5 commit c971041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
270270
return repoChanges.find(r => r.repo === name)
271271
})
272272
repoChanges = dedupedRepos
273-
const dedupedSubOrgs = [...new Set(subOrgChanges.map(s => s.name))].map(name => {
274-
return subOrgChanges.find(s => s.name === name)
273+
const dedupedSubOrgs = [...new Set(subOrgChanges.map(s => s.repo))].map(repo => {
274+
return subOrgChanges.find(s => s.repo === repo)
275275
})
276276
subOrgChanges = dedupedSubOrgs
277277
robot.log.debug(`deduped repos ${JSON.stringify(repoChanges)}`)

0 commit comments

Comments
 (0)