Automated Repository Migration from GitLab Groups to Gitea Organizations

Nodes

3b9f1b78-6b80-4575-aa6c-966987000389

Categories

Created by

nenepomuc

Last edited 39 days ago

This flow migrates all repositories of a Gitlab group to a Gitea organization by triggering Gitea's integrated migration tool.

Set up steps:

  1. Copy this workflow
  2. Create an empty Gitea-organization you want to migrate to. (The flow will skip all projects which have the same name of possibly already existing repos in the target Gitea organization.)
  3. Create an access token in your Gitea (https://gitea.example.com/user/settings/applications), set it up as a Header Auth with it's name being "Authorization" and value being "token [your-gitea-token]" and select it for the "Gitea:"-named nodes.
  4. Create a Personal access token in Gitlab (https://gitlab.com/-/user_settings/personal_access_tokens), create a Header Auth with name "PRIVATE-TOKEN" and value "[your-gitlab-token]" and select it for the "Gitlab:"-named node. Also keep the value of your Gitlab-token available for step 5.
  5. Edit the Set node right after the trigger node and set paste your personal access token in there as well as the names of the Gitlab source group and the Gitea target organization. Use the url-friendly version of their names by simply copy&pasting them from their URLs.
  6. Run the flow and enjoy the show :)

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!