get_default_branch: Get default branch of a GitHub repository

View source: R/list_github_files.R

get_default_branchR Documentation

Get default branch of a GitHub repository

Description

Get default branch of a GitHub repository

Usage

get_default_branch(repo, owner = "curso-r")

Arguments

repo

Repository name (excluding owner).

owner

GitHub organization (default is curso-r).

Value

A string.

Examples

get_default_branch("main-web-scraping")


curso-r/CursoRopen documentation built on April 14, 2022, 2:28 p.m.