Skip to content

[Improvement] Rename default master branch to main #2570

Closed

Description

@arturcic

GitHub already added the feature to rename the default branch and re-target the PRs on the new default branch.

@GitTools/developers do you agree with that?

It will require also adapting the build scripts and maybe the code itself

Activity

  1. asbjornu commented on Jan 29, 2021

    @asbjornu
    Member

    Yes, 👍🏼 from me.

  2. gep13 commented on Jan 29, 2021

    @gep13
    Member

    Seems like a good idea to me!

  3. dazinator commented on Jan 29, 2021

    @dazinator
    Contributor

    Whats the benefit?

  4. asbjornu commented on Jan 29, 2021

    @asbjornu
    Member

    There's a lot of good information here, @dazinator.

  5. dazinator commented on Jan 31, 2021

    @dazinator
    Contributor

    Oh dear. Politics.
    I guess everyone who works in master data management is hoping they will go under the radar of this particular political agenda!

  6. added this to the 5.6.5 milestone on Feb 1, 2021
  7. GeertvanHorrik commented on Feb 1, 2021

    @GeertvanHorrik
    Contributor

    @arturcic is this a "visual" / GitVersion branch change only or also a behavioral runtime change in how GitVersion works?

    The reason I ask is because I see lots of unit tests changing from master => main but I think we should actually duplicate and test both master and main (and leave it it to the users whether they want to go ahead with this "main branch thing").

  8. arturcic commented on Feb 1, 2021

    @arturcic
    MemberAuthor

    @GeertvanHorrik the tests internally use main to make it consistent, but master is still supported. I introduced the constant MainBranch that is used in the tests, and before the switch it had the master value. This is for the internal code only. As for the consumer, default is main, but you can also use the master in GitVersion.yml as there is a compatibility added.

  9. arturcic commented on Feb 1, 2021

    @arturcic
    MemberAuthor

    That means projects that were using the GitVersion before this change will continue to work

  10. GeertvanHorrik commented on Feb 1, 2021

    @GeertvanHorrik
    Contributor

    Thanks for the explanation, then I don't mind, as long as it's not a breaking change for people sticking with master 👍

  11. gep13 commented on Feb 1, 2021

    @gep13
    Member

    This is a nice touch...

    image

    Got that when browsing to repository after rename.

  12. github-actions commented on Feb 7, 2021

    @github-actions

    🎉 This issue has been resolved in version 5.6.5 🎉
    The release is available on:

    Your GitReleaseManager bot 📦🚀

  13. david-driscoll commented on Feb 8, 2021

    @david-driscoll
    Contributor

    Just an FYI I found that this causes a failure when using a branch configuration that currently references master. Changing the source-branches fixes the problem however that seems like an accidental breaking change. ❤️

    assembly-versioning-scheme: MajorMinorPatch
    mode: ContinuousDeployment
    continuous-delivery-fallback-tag: ci
    next-version: 0.1.0
    branches:
      next:
        regex: ^next$
        mode: ContinuousDeployment
        tag: next
        increment: Major
        prevent-increment-of-merged-branch-version: false
        track-merge-target: false
        tracks-release-branches: false
        is-release-branch: false
        source-branches: ['master']
    ignore:
      sha: []
  14. asbjornu commented on Feb 8, 2021

    @asbjornu
    Member

    @david-driscoll, this should have been fixed in #2588.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions