|
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
- 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