Seamlessly Migrate Gitlab Projects to Gitea
detail.loadingPreview
Automate the migration of your Gitlab projects to Gitea with this powerful n8n workflow. Effortlessly transfer repositories, issues, labels, and more, ensuring a smooth transition to your Gitea instance.
About This Workflow
This n8n workflow provides a robust solution for migrating your existing Gitlab projects to a Gitea instance. It begins by fetching all projects from a specified Gitlab group. For each project, it checks if a corresponding repository already exists in your Gitea organization. If not, it proceeds to migrate the project, including its issues, labels, LFS data, milestones, pull requests, and wiki. The workflow is designed to handle potential errors gracefully, providing clear feedback and options for continued execution or error reporting. This significantly reduces the manual effort and potential for human error in large-scale migrations.
Key Features
- Automated Gitlab Project Discovery: Automatically retrieves all projects from a designated Gitlab group.
- Intelligent Gitea Repository Check: Prevents duplicate repositories by checking for existing projects in Gitea before migration.
- Comprehensive Data Migration: Transfers repositories along with issues, labels, LFS, milestones, pull requests, and wikis.
- Configurable Migration Parameters: Easily set up access tokens, group names, and organization paths within the workflow.
- Robust Error Handling: Includes logic to identify and manage specific error codes, ensuring a more reliable migration process.
How To Use
- Configure Credentials: Set up HTTP header authentication for both your Gitlab and Gitea instances in n8n.
- Set Up Initial Variables: In the 'Setup (CHANGE ME)' node, replace placeholder values with your actual Gitlab access token, Gitlab group path name, and Gitea organization path name.
- Trigger Workflow: Execute the workflow manually by clicking the 'Execute workflow' button on the trigger node.
- Monitor Execution: Observe the workflow's progress through the n8n interface. The 'Gitlab: Get projects' node fetches your Gitlab projects, followed by checks for existing Gitea repositories.
- Review Migration Status: If a repository is migrated, it will proceed. If an error occurs (e.g., a 404 error from Gitea indicating the repo doesn't exist yet), the 'Switch error codes' node will route it accordingly. Errors will either trigger the 'Stop and Error' node or attempt migration if the initial check passed.
Apps Used
Workflow JSON
{
"id": "72b42016-adf5-489d-9e2d-d28411d3f923",
"name": "Seamlessly Migrate Gitlab Projects to Gitea",
"nodes": 8,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 72b42016-adf5...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.