Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Automate rename master branch to main #10

Open
3 tasks
Tracked by #9
nelsonic opened this issue Nov 16, 2022 · 0 comments
Open
3 tasks
Tracked by #9

Chore: Automate rename master branch to main #10

nelsonic opened this issue Nov 16, 2022 · 0 comments

Comments

@nelsonic
Copy link
Member

At present most of the repos in @dwyl have the default branch set to the "legacy" master ...
Given that the industry has moved to naming default branches to main see #8
We need to automate it for the

Looks fairly easy to do: https://docs.github.com/en/rest/branches/branches#rename-a-branch

Todo

  • Write function that checks each repo for the default branch name
  • If the default repo is master, rename it to main
  • finally protect the main branch
@nelsonic nelsonic self-assigned this Nov 16, 2022
@nelsonic nelsonic moved this to 🏗 In progress in dwyl app kanban Nov 16, 2022
nelsonic added a commit that referenced this issue Nov 16, 2022
nelsonic added a commit that referenced this issue Nov 16, 2022
… ... but would be good to get this working ... #8 #10
@nelsonic nelsonic moved this from 🏗 In progress to ⏳Awaiting Review in dwyl app kanban Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant