Adds labels from a dataframe to a repository

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

Value

A message showing the tags that were deleted

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", ""))