Skip to content

Conversation

@codeEvolveZenith345
Copy link
Contributor

What this PR does / why we need it:

Updates all references from master to main branch throughout the repository to adopt more inclusive terminology. This includes 400+ files across documentation, CI/CD workflows, configuration files, and all versioned docs (v3.0.0 - v3.22.0).

Which issue this PR fixes: fixes #284

Special notes for your reviewer:

  • All master branch references updated to main (except kubectl error logs which are literal error messages)
  • After merge, maintainers need to rename the default branch in repository settings and optionally delete the old master branch

Checklist:

…erminology.

Signed-off-by: codeEvolveZenith345 <suntiwari3495@gmail.com>
@vercel
Copy link

vercel bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litmus-docs Ready Ready Preview Comment Nov 11, 2025 7:21pm

@netlify
Copy link

netlify bot commented Nov 11, 2025

Deploy Preview for docs-litmuschaos ready!

Name Link
🔨 Latest commit 2c22921
🔍 Latest deploy log https://app.netlify.com/projects/docs-litmuschaos/deploys/691384f94762150008e01adb
😎 Deploy Preview https://deploy-preview-411--docs-litmuschaos.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codeEvolveZenith345
Copy link
Contributor Author

Hi @PriteshKiri
Sir, I have implemented the issue #284 in this PR, for this I used these commands

# 3. Search for all references to 'master' branch in the codebase
grep -r "master" --exclude-dir=.git --exclude-dir=node_modules .

# 4. Update references to master in documentation and config files
# For markdown files
find . -type f -name "*.md" \
  -not -path "*/node_modules/*" -not -path "*/.git/*" \
  -exec sed -i 's/\/master\//\/main\//g' {} +

find . -type f -name "*.md" \
  -not -path "*/node_modules/*" -not -path "*/.git/*" \
  -exec sed -i 's/branch=master/branch=main/g' {} +

# For YAML/YML files (CI/CD configs)
find . -type f \( -name "*.yml" -o -name "*.yaml" \) \
  -not -path "*/node_modules/*" -not -path "*/.git/*" \
  -exec sed -i 's/master/main/g' {} +

# For JSON files
find . -type f -name "*.json" \
  -not -path "*/node_modules/*" -not -path "*/.git/*" \
  -exec sed -i 's/master/main/g' {} +

# For JavaScript/TypeScript config files
find . -type f \( -name "*.js" -o -name "*.ts" \) \
  -not -path "*/node_modules/*" -not -path "*/.git/*" \
  -exec sed -i 's/\/master\//\/main\//g' {} +
#1. Update docusaurus.config.js - label for unreleased version
sed -i "s/label: 'master\/unreleased'/label: 'main\/unreleased'/g" ./website/docusaurus.config.js

# 2. Update CONTRIBUTING.md - base branch reference
sed -i 's/from where you want to base your work (usually master)/from where you want to base your work (usually main)/g' ./CONTRIBUTING.md

# 3. Update CONTRIBUTING.md - rebase reference
sed -i 's/Rebase to the current master branch/Rebase to the current main branch/g' ./CONTRIBUTING.md

# 4. Verify all 'master' references are resolved (should only show kubectl error logs now)
echo "Final verification..."
grep -r "master" --exclude-dir=.git --exclude-dir=node_modules . | grep -v "mainLogs" | grep -v "Neither --kubeconfig nor --master"

@codeEvolveZenith345
Copy link
Contributor Author

I hope the commands shared helps you in reviewing,

If there are any mis-aligned implementations, Tell me & I will fix it.

@codeEvolveZenith345
Copy link
Contributor Author

Hello @PriteshKiri
Sir, please review this PR.

@PriteshKiri
Copy link
Collaborator

Hey @codeEvolveZenith345

Could you please take a pull from that latest branch?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename master to `main'

2 participants