git: Git Repository Helpers

gitR Documentation

Git Repository Helpers

Description

\lifecycle

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

Usage

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

See Also

connectapi::deploy_repo

Other content functions: acl_add_user(), content_delete(), content_item(), content_title(), content_update(), create_random_name(), dashboard_url_chr(), dashboard_url(), delete_vanity_url(), deploy_repo(), get_acl_user(), get_bundles(), get_environment(), get_image(), get_jobs(), get_vanity_url(), permissions, set_image_path(), set_run_as(), set_vanity_url(), swap_vanity_url(), verify_content_name()


connectapi documentation built on Feb. 16, 2023, 7:46 p.m.