Imports

While it is not required, SourceOptics can automatically import repositories from GitHub, and will be shortly adding support for BitBucket. To start, configure GitHub in the organization's Credential object (in Django Admin).

You will need to supply an organizaton name and, if using GitHub Enterprise, the github API endpoint URL.

Once configured, run this management command:

python3 manage.py github_import -o organization_name

The organization must already exist. There are settings in the organization to specify a github API endpoint (for use with private GitHub) as well as fnmatch-format filter strings to only import certain patterns of project names.

This can work with both regular GitHub and GitHub Enterprise installations.

SourceOptics does not endorse any particular git providers and support for other hosting providers via another management command would be a welcome addition.