Skip to content

Migrate default branch from master to mainΒ #491

@ravi-prakash-v

Description

@ravi-prakash-v

πŸ“Œ Description

The repository currently uses the master branch as its default. To align with modern, inclusive standards and GitHub’s default conventions, we need to:

  • Officially deprecate master
  • Transition to main as the new default branch
  • Update all references across the repo and community workflows

🎯 Rationale

  • Inclusivity: Industry-wide shift to using main instead of master.
  • Consistency: Aligns Beckn Protocol repos with open-source best practices.
  • Compatibility: Many CI/CD and automation tools expect main as the default.

βœ… Tasks

  • Change default branch in GitHub repository settings from master β†’ main.

  • Ensure main is protected with the same branch protection rules as master.

  • Update references to master in:

    • Documentation files
    • CI/CD configurations
    • Contribution guidelines
    • Governance references
  • Notify community via Announcement (see linked PR/Discussion).

  • Add redirects/aliases where necessary to avoid broken links.


πŸ”„ Community Instructions

Contributors are requested to:

  • Update local branches (git branch -m master main).
  • Rebase any open PRs onto main.
  • Update Issues, Discussions, and documentation references pointing to master.

πŸ“Ž References


πŸ”” Impact: Medium β€” Requires community coordination but no breaking changes to specifications.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions