- The user logs in with a GitHub account (via Auth0).
- The user clicks the import model button.
- The web page requests the “list repository” API to obtain a list of the user’s repositories and gists.
- The user selects a repository or gists.
- If the user selected a repository:
- The web page requests the “list branches” API to obtain a list of the branches of the selected repository.
- The user selects a branch.
- The web page requests the “import github” API to inform the backend to begin importing the specified repository/branch.
- The backend reads the repository/branch and creates a Unified Model Format struct as the model data. Some details are as follows:
- Use the repository name as the model name.
- Assume that the repository contains
Project.toml
. - Assume that the repository contains
main.jl
as the entrance file. - Assume that the entrance file contains a function named
model
as the entrance function.