Today I’ll work on writing unit tests for https://github.com/go-gitea/gitea/blob/main/models/migrate.go . The ultimate goal is to modify it so it is idempotent, which is useful for federation when synchronizing issues. The tests should be merged first so that the proposed changes to make these functions idempotent can demonstrate they do not break anything.
@realaravinth would you be ok with helping upstream these changes as well? If handling two PR in parallel is too much of a burden (and I fully appreciate it is a burden and I’m grateful), I would be happy to wait until the first PR is merged before asking for help.