VCS Default Branch Isn't Reflected on CircleCI

You may change the default branch on your VCS provider, and sometimes that change won't be reflected on CircleCI. This can cause issues with some features that rely on knowing which branch is the default, such as Github status checks and Build Only Pull Requests.

You can re-establish the correct default branch on CircleCI by removing/re-adding the project with the following steps:

1. Remove all CircleCI webhooks and services from your GitHub repo settings.
2. Tell the project to stop building on CircleCI through "Project settings".
3. Add the project back on CircleCI.

This will update CircleCI with the correct default branch information

Was this article helpful?
3 out of 8 found this helpful

Comments

0 comments

Article is closed for comments.