org_perm: Organization permissions

org_permR Documentation

Organization permissions

Description

  • org_sitrep() - Provides a situation report on a GitHub organization.

  • org_set_repo_permission() - Change the default permission level for org repositories.

Usage

org_sitrep(org)

org_set_repo_permission(org, permission = c("none", "read", "write", "admin"))

Arguments

org

Character. Name of the GitHub organization(s).

permission

Default permission level members have for organization repositories:

  • read - can pull, but not push to or administer this repository.

  • write - can pull and push, but not administer this repository.

  • admin - can pull, push, and administer this repository.

  • none - no permissions granted by default.

Value

org_sitep() invisibly returns the org argument.

org_set_repo_permission() invisibly return a the result of the relevant GitHub API call.

Examples

## Not run: 
org_sitrep("ghclass-test")

org_set_repo_permission("ghclass-test", "read")

org_sitrep("ghclass-test")

# Cleanup
org_set_repo_permission("ghclass-test", "none")

## End(Not run)


ghclass documentation built on May 29, 2024, 8:44 a.m.