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

Update default branch to main #40

Open
davidcheung opened this issue Oct 19, 2021 · 0 comments
Open

Update default branch to main #40

davidcheung opened this issue Oct 19, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@davidcheung
Copy link
Contributor

  1. DEFAULT_BRANCH=master
    curl -XPUT "https://api.github.com/repos/$GITHUB_ORG/$GITHUB_REPO/branches/$DEFAULT_BRANCH/protection" \

probably can do the same as commitdev/zero#424 and run git config --get init.defaultBranch with a default

  1. In circleci pipeline
    only: # only branches matching the below regex filters will run
    - /^master$/

    we could just update so it supports both in a regex /^(master|main)$/ or something like that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Backlog
Development

No branches or pull requests

1 participant