fastlane/monorepo

Issue migration lost relations between issues

lacostej opened this issue · 3 comments

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

Is there any way we could fix that?

@KrauseFx

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 :)

That's theoretical. I haven't tested octokit