All Tools View Categories About Contact Privacy

CODEOWNERS File Generator

Generate a CODEOWNERS file for GitHub, GitLab, or Bitbucket that auto-assigns reviewers.

Runs entirely in your browser — no data is uploaded anywhere.

* — default owner for everything not matched below.

/docs/ — directory; src/** or src/lib/*.js — files.

@team GitHub team, %group GitLab, @user.email.com for emails.

Rules apply longest-pattern-first: specific lines beat the general one.


      

About CODEOWNERS File Generator

Build a CODEOWNERS file for GitHub, GitLab, or Bitbucket by adding pattern rules with global or per-rule syntax. Includes a root default owner, a defensive final catch-all, the correct platform banner, and ready-to-save output.

Features

Platform-specific banner and owner syntax (GitHub / GitLab / Bitbucket),Global default owner for the * root pattern,Add multiple pattern rules with teams or users,Per-file owner syntax toggle (GitLab/Bitbucket style),Syntax validation with clear line reports,Defensive catch-all to guarantee someone owns unprotected paths

How to Use

1. Choose your platform. 2. Set the global default owner (or leave empty to skip *). 3. Add rules: pattern path plus owners (team, email, or username). 4. Click Generate, review the report, and download or paste your CODEOWNERS file.

Examples

@my-org/sre-team owns everything via * /src/lib/*.js @alice deploys the deploy dir %frontend-team for the web/ tree on GitLab

Benefits

Instant, correct CODEOWNERS for any platform without memorizing syntax differences, plus validation to catch bad patterns before they reach CI lockout.

Frequently Asked Questions

What is CODEOWNERS?
A plain text file (CODEOWNERS) that the platform reads to auto-assign reviewers or restrict merges for matching paths. GitHub, GitLab, and Bitbucket all support it with slightly different syntax.
Where does the file go?
GitHub reads .github/CODEOWNERS, docs/CODEOWNERS, or the root CODEOWNERS. GitLab reads CODEOWNERS or .gitlab/CODEOWNERS, and Bitbucket reads CODEOWNERS at the repo root.
What does the * rule do?
The * line sets the default owner for every path not matched by a more specific rule. Rules are matched longest-first, so more specific patterns override it.
Can teams be owners?
On GitHub yes — @team is valid if the team can be mentioned on the repo. GitLab uses %group or %subgroup, and Bitbucket supports user groups and projects.
How are rules matched?
The platform scans top to bottom and applies the rule with the longest matching pattern. Trailing * matches suffixes, and leading * matches directory prefixes.
Does it handle emails or usernames?
Yes. GitHub and Bitbucket accept user emails; GitHub also accepts usernames. Tabs or, on GitHub, whitespace separate the pattern from the owners.
Are comments allowed?
Yes — lines starting with # are comments, and the generator includes an informative header with a timestamp and platform note.
Is my data uploaded?
No. Everything is assembled in your browser. The generated file is ready to save as CODEOWNERS or paste into your platform.