Description Usage Arguments Value See Also Examples
This function allows you to update a repository's features. You can easily change the repository's name, privacy settings, and more.
1 | gh_repos_mutate(path, ...)
|
path |
GitHub repo path of the form "username/repo". If not provided, will default to current repo. |
... |
Additional parameters, see https://docs.github.com/en/rest |
NA; called for side effects to manipulate GitHub repositories.
Other Repositories:
gh_repos_create()
,
gh_repos_delete_internal()
,
gh_repos_delete()
,
gh_repos_list()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## Not run:
# Create a Private Repo
gh_repos_create(path = "jdtrat/ghee_test", private = TRUE, description = "A test repository.")
# Disable Issues
gh_repos_mutate(path = "jdtrat/ghee_test", has_issues = FALSE)
# Update Description
gh_repos_mutate(path = "jdtrat/ghee_test", description = "A test repository for {ghee}.")
# Remove Description
gh_repos_mutate("jdtrat/friend", description = NA)
# Change Privacy Settings
gh_repos_mutate(path = "jdtrat/ghee_test", private = FALSE)
# Change Repo Name
gh_repos_mutate(path = "jdtrat/ghee_test", name = "ghee_testing")
# Change Repo Name Back
# Note the path argument reflects the name change
gh_repos_mutate(path = "jdtrat/ghee_testing", name = "ghee_test")
# Delete Repo
# Note this requires a special GitHub Token and should be used with caution.
gh_repos_delete("jdtrat/ghee_test")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.