git: Git Repository Helpers

gitR Documentation

Git Repository Helpers

Description

[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: content_delete(), content_item(), content_title(), content_update(), create_random_name(), dashboard_url(), dashboard_url_chr(), delete_thumbnail(), delete_vanity_url(), deploy_repo(), get_bundles(), get_environment(), get_image(), get_job(), get_jobs(), get_thumbnail(), get_vanity_url(), has_thumbnail(), permissions, set_image_path(), set_run_as(), set_thumbnail(), set_vanity_url(), swap_vanity_url(), terminate_jobs(), verify_content_name()


rstudio/connectapi documentation built on Dec. 20, 2024, 1:48 p.m.