Creates a repo in the workspace and links it to the remote Git repo specified.
db_repo_create(
url,
provider,
path,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
URL of the Git repository to be linked.
Git provider. This field is case-insensitive. The available
Git providers are gitHub
, bitbucketCloud
, gitLab
, azureDevOpsServices
,
gitHubEnterprise
, bitbucketServer
and gitLabEnterpriseEdition.
Desired path for the repo in the workspace. Must be in the format
/Repos/{folder}/{repo-name}
.
Databricks workspace URL, defaults to calling db_host()
.
Databricks workspace token, defaults to calling db_token()
.
If TRUE
(default) the request is performed, if
FALSE
the httr2 request is returned without being performed.
Other Repos API:
db_repo_delete()
,
db_repo_get()
,
db_repo_get_all()
,
db_repo_update()