create_labels: Adds labels from a dataframe to a repository

Description Usage Arguments Details Value

View source: R/labels.R

Description

Adds labels from a dataframe to a repository

Usage

1
create_labels(org, repo, label_df, .api_url = api_url(graphql = FALSE))

Arguments

org

Name of organization to query

repo

Name of repository to query

label_df

A dataframe containing the columns name, color, description of each label to create. See details.

.api_url

Optional API url to query. Defaults to "https://api.github.com/" This function uses the v3 REST API instead of the v4 GraphQL

Details

The label dataframe should be structured as follows: data.frame(name = c("Label 1", "Label 2", "Label 3"), color = c("00FFFF", "FFFF00", "FF00FF"), description = c("This is the first description", "The second one", ""))

Value

A message showing the tags that were deleted


metrumresearchgroup/ghpm documentation built on Jan. 24, 2021, 8:28 p.m.