This is a step-by-step guide for adding multiple repos via HTTPS. If you are interested in importing a single repo, check out Importing a repo via HTTPS.
Flow only has access to commit data for repos connected to Flow through the Generic Repo HTTPS integration.
Important: Use a service account when bulk importing repos via HTTPS. Learn more about creating a service account.
To bulk import repos via the Generic Repo HTTPS integration:
- Click Settings.
- Under Integrations, click Integrations.
- Click Add Integration.
- Click Generic Repo from the integration provider list.
- On the next page, click Bulk import.
- Prepare a CSV file with a list of all of the HTTPS clone URLs of the repos you want to import.
Tip: If you have a private repository, add the username and password directly to the CSV. Usernames, passwords, and URLs don't need to be encoded in the uploaded files—Flow does this for you. Copy and paste your information into the file. In the example below, repos 3 and 4 are public and don't need a username or password.
- In the Bulk import repos modal, click Choose File and locate the CSV file you created.
- Click Test connection.
- If your connection and repos were successfully added, click Next.
If your connection wasn't successful, you'll see an error message like the one below. Download the list of failed repos to understand why they weren't imported and try again.
Here are a few reasons why some of your repos might fail to import:- Clone URL is incorrect
- Username and/or password are incorrect
- Repo has already been imported
- Two-factor authentication is enabled for your Git host. Please use a personal access token in place of your password.
- On the next screen, ensure the repo service toggle is on and click Next.
- Next, name your integration to make it easier to find in Flow. Click Create. You've successfully created a new integration and bulk imported your repos via HTTPS.