[Experimental] These functions help use Posit Connect's configured authorization to query available branches and subdirectories for deployment using deploy_repo()

repo_check_account(client, host)

repo_check_branches(client, repository)

repo_check_branches_ref(client, repository)

repo_check_manifest_dirs(client, repository, branch)

Arguments

client

A Connect R6 object

host

The git repository host (with schema). For example, "https://github.com"

repository

The git repository to explore or consider deploying

branch

The git branch to explore for subdirectories

Details

  • repo_check_account() messages whether an account is in use, and then returns that account

  • repo_check_branches() retrieves which branches are available, returning in a named list

  • repo_check_manifest_dirs() retrieves which directories contain a manifest.json, returning in a named list