IQSS / dataverse-client-r

R Client for Dataverse Repositories
https://iqss.github.io/dataverse-client-r
60 stars 24 forks source link

rename default branch to "main" #126

Closed wibeasley closed 2 months ago

wibeasley commented 1 year ago

@kuriwaki, after things are accepted on CRAN, do you mind if I rename the default branch? There are some git commands you can run locally, but honestly it's almost easier to delete and reclone your local copy.

https://ouhscbbmc.github.io/data-science-practices-1/git.html?q=master#main-vs-master-branch

kuriwaki commented 1 year ago

Yes that crossed my mind too. Please do!

kuriwaki commented 2 months ago

In R, this function usethis::git_default_branch_rename() does the job quickly and painlessly. But I get the following error when I run this.

> usethis::git_default_branch_rename()
✔ Setting active project to '/Users/sk2983/Projects/dataverse-client-r'
Error: You don't seem to have admin permissions for the source repo 'IQSS/dataverse-client-r', which is required to rename the default branch.

@wibeasley can you try on your end?

pdurbin commented 2 months ago

@kuriwaki you weren't part of https://github.com/orgs/IQSS/teams/dataverse-client-r-admin but I just added you. (You were part of the "write" team.)

kuriwaki commented 2 months ago

Thanks @pdurbin. That worked and now the branch is renamed. I will fix the reference in our workflow from "master" to "main" as well.