Skip to content

Update default branch to main #40

@davidcheung

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions