Add support for migrating from Pagure (#8513)

Add support for migrating Pagure repositories (including metadata) to Forgejo via the migration tool.

One 'discrepancy' with migration from other forges is how privates issues are handled, they are migrated when a API token is set for the migration, in that case users are advised to set their repositories visibility to private to avoid leaking such private issues.

Co-authored-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
Co-authored-by: Ryan Lerch <rlerch@redhat.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8513
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Akashdeep Dhar <akashdeep.dhar@gmail.com>
This commit is contained in:
Akashdeep Dhar 2025-08-11 16:56:26 +02:00 committed by Gusted
commit b8f15e4ea0
59 changed files with 6921 additions and 1 deletions

View file

@ -38,7 +38,10 @@ function checkAuth() {
if (!service) return;
const serviceType = Number(service.value);
checkItems(serviceType !== 1);
// hack for pagure importer.
if (serviceType !== 10) {
checkItems(serviceType !== 1);
}
}
function checkItems(tokenAuth) {