Provides API endpoints related to api/integrations/git
Summary
Functions
@spec create_repo( provider_id :: String.t(), body :: map() | ApifyClient.Schemas.CreateGitRepoRequest.t(), opts :: keyword() ) :: {:ok, ApifyClient.Schemas.GitRepo.t()} | {:error, ApifyClient.Error.t()}
Create git repository
Creates a repository through a connected git account and commits the initial files into it, either the given
files or the files of an Actor template archive (templateArchiveUrl).
Request Body
Content Types: application/json
@spec list(opts :: keyword()) :: {:ok, [ApifyClient.Schemas.GitProviderIntegration.t()]} | {:error, ApifyClient.Error.t()}
Get git provider integrations
Gets your connected git provider accounts (GitHub App, GitLab and Bitbucket), each with the workspaces you can create a repository in. Only authorized accounts are returned, and accounts whose access was revoked are left out.
Use the id of an integration as the providerId in the
Create git repository and
Register deployment key endpoints.
@spec register_deployment_key( provider_id :: String.t(), body :: map() | ApifyClient.Schemas.RegisterDeploymentKeyRequest.t(), opts :: keyword() ) :: {:ok, ApifyClient.Schemas.RegisterDeploymentKeyResponseData.t()} | {:error, ApifyClient.Error.t()}
Register deployment key
Registers the Actor's deployment key (a read-only SSH key generated for every Actor) on a repository through a connected git account, so that Apify can clone the repository when building the Actor.
You need write access to the Actor. The repository's host must match the provider of the connected account. If the key is already registered on the repository, nothing changes. On GitHub, registering the key on another repository removes it from the previously linked one.
Request Body
Content Types: application/json