Skip to main content
Version: v2.5 print this page

Code Repositories

A Code Repository provides an user the ability of source code management in amorphic notebooks. Git based repositories like github, gitlab, bitbucket and code commit repositories can be connected to the amorphic code repository. These code repositories can be attached to notebooks to save the work and reuse in the future.

Create Code Repository

Create a Code Repository

To create a Code Repository:

  1. Click on + Create Code Repository.
  2. Fill in the details shown in the table:
AttributeDescription
Code Repository NameGive your Code Repository a name. This name needs to be unique across the application. The name can be up to 63 characters
Code Repository TypeSelect the type of the code repository, it can be code commit, gitlab. github or bitbucket
DescriptionDescribe the purpose of the Code Repository and other important details.
KeywordsKeywords are indexed and searchable in the app to help you find things quickly.
Create Code RepositoryUser can enable this to create a new code commit repository along with the code repository in amorphic, this option is only available when the code repository type is of code commit and the code commit repository will be created in the same account in which amorphic is deployed.
Code Repository UrlUser should provide https url of the git repository for github, bitbucket, gitlab and code commit
Default Code Repository BranchUser can provide the name of a particular branch of the git repository, this branch will be cloned in the notebook, when the code repository is attached to the notebook.
Create new credentialsUser can enable this to attach the credentials to the code repository, by providing the credentials name, username and password, this will create a new corrosponding parameter in amorphic parameter store with the user provided credentials.
Credentials NameIf user selects to create a new credential for the code repository, then the user must enter a name of the credential parameter, else user can select an already existing parameter in the amorphic parameter store.
UsernameUser must provide the username in order to connect to the git repositoy.
PasswordUser must provide the password/auth-token in order to connect to the git repositoy.
Note

Only a unique code repository can exist in amorphic with a particular repository url. Amorphic Code Repository does not support connecting to cross account code commit reposiotries. Code Repository of type code commit does not require credentials. If user wants to create a code repository without credentials, this can be achieved only through API for now.

Edit Code Repository

Update a Code Repository

To update a Code Repository, user must be a owner of the code repository, click on the edit icon from the details or the listing page. Only the credentials of the code repository can be updated. User can create new credentials parameter or attach different parameter to the code repository.

Note

Code repository of type code commit cannot be updated. If user wants to dettach the credentials from the code repository, it can be achieved only through API for now.

Attach a Code Repository to a notebook instance

While creating or updating a notebook instance, users can optionally attach a Code Repository that they have access to.

Delete Code Repository

Delete a Code Repository

To delete a Code Repository, click on the delete icon from the details page or the listing page. If the code repository is of type code commit and a code commit repository was created along with the creation of code repository, the user can retain the code commit repository while deleting the code repository, if user does not select the option to retain the code commit repository, then the code commit repository will also be deleted along with the code repository. If there are any dependent notebooks which are using this code repository, the Code Repository cannot be deleted.