Issue migration lost relations between issues
lacostej opened this issue · comments
Jerome Lacoste commented
The monorepo migration missed keeping links between issues. E.g. fastlane-old/spaceship#142 was linked with fastlane-old/spaceship#276 but fastlane/fastlane#2014 is unrelated to fastlane/fastlane#2053
Felix Krause commented
Is there any way we could fix that?
Jerome Lacoste commented
something along the line of:
For all issues in obsolete projects with 'migrated' tag
search for issue (not PRs) references that point to obsolete projects or fastlane issues with id <= LAST_ISSUE_BEFORE_MIGRATION
[ maybe using 'referenced' events from https://developer.github.com/v3/issues/events/ ]
for all these referenced issues
if referenced issue was migrated
replace referenced issue with reference of migrated issue
add comment from monorepo bot to referenced issue
Now it would be easier it those obsolete projects were frozen and issues couldn't be edited/reopened/created/etc
I see you managed to do it in some spaceship issue with "locked and limited conversation to collaborators" so it should be possible :)
Jerome Lacoste commented
That's theoretical. I haven't tested octokit