Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

What is .github/CODEOWNERS

The file .github/CODEOWNERS is a special configuration file used by GitHub to define who is responsible for different parts of a repository’s codebase.

Here’s a breakdown:

📌 Location

  • It lives inside the .github folder (or at the repo root).
  • Common paths:
    • .github/CODEOWNERS
    • docs/CODEOWNERS
    • CODEOWNERS at the repo root

📌 Purpose

  • It tells GitHub who the code owners are for specific files or directories.
  • When someone opens a pull request that changes those files, the listed code owners are automatically requested for review.

📌 Example

# Global owner (applies to everything)
*       @team-leads

# Specific owners for backend
/backend/ @backend-team

# Specific file owners
/package.json @frontend-lead
Code language: PHP (php)

📌 How it Works

  • GitHub matches file patterns (like .gitignore syntax).
  • The last matching pattern in the file takes precedence.
  • Code owners must have write access to the repository.
  • They are automatically added as reviewers on PRs affecting their files.

📌 Benefits

  • Clear responsibility for parts of the codebase.
  • Enforced review process before merging.
  • Helps large teams organize ownership and accountability.

Here’s a sample CODEOWNERS file structure you can adapt to a multi-organization / multi-team project like Wizbrand. It covers global defaults, team-specific ownership, and even individual file rules.


📌 Sample .github/CODEOWNERS

# -----------------------------------
# Global default (everything not matched below)
# -----------------------------------
*               @org-leads

# -----------------------------------
# Backend ownership
# -----------------------------------
/backend/        @backend-team
/backend/api/    @api-team
/backend/db/     @db-admins

# Specific files
/backend/Dockerfile   @devops-team
/backend/package.json @backend-lead

# -----------------------------------
# Frontend ownership
# -----------------------------------
/frontend/      @frontend-team
/frontend/ui/   @ui-ux-team
/frontend/src/  @frontend-leads

# Specific owners for critical config
/frontend/package.json   @frontend-lead
/frontend/.eslintrc.js   @qa-team

# -----------------------------------
# DevOps & Infrastructure
# -----------------------------------
/infra/          @devops-team
/.github/        @ci-cd-team
/k8s/            @platform-team

# Terraform & Helm charts
/infra/terraform/    @infra-team
/infra/helm/         @platform-team

# -----------------------------------
# Documentation
# -----------------------------------
/docs/          @docs-team
README.md       @docs-lead

# -----------------------------------
# Security
# -----------------------------------
/secrets/       @security-team
/config/        @security-team
Code language: PHP (php)

📌 Explanation

  • * @org-leads → Default: If no other rule matches, organization leads own it.
  • /backend/ @backend-team → Whole backend directory goes to the backend team.
  • backend/Dockerfile @devops-team → Specific file owned by DevOps.
  • /frontend/ui/ @ui-ux-team → UI components handled by the design/UX team.
  • /.github/ @ci-cd-team → All GitHub workflows and configs owned by CI/CD team.
  • /docs/ @docs-team → Documentation owned by docs team, with README.md specifically assigned to docs lead.
  • /secrets/ @security-team → Anything sensitive is owned by the security team.

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x