PR Template & CODEOWNERS Generator
Create consistent pull request descriptions and automatically assign reviewers with these essential GitHub files.
Template Sections
Generated PR Template
Add a Rule
Generated CODEOWNERS File
Frequently Asked Questions
What is a Pull Request (PR) Template?
A PR template is a pre-formatted template of Markdown text that automatically populates the description field when a new pull request is created. It helps ensure contributors provide all the necessary information, such as a description of the changes, testing details, and links to related issues.
What is a CODEOWNERS file?
A `CODEOWNERS` file in a GitHub repository defines individuals or teams that are responsible for code in the repository. When a pull request changes code owned by a specific team or user, they are automatically requested for review, streamlining the code review process.
Where should I save these generated files?
PR templates can be saved as `PULL_REQUEST_TEMPLATE.md` in the root of your repository or in a `.github/` directory. The `CODEOWNERS` file must be saved in the root of the repository, or in the `.github/` or `docs/` directory.
Can I have multiple PR templates?
Yes, you can create multiple issue and pull request templates. For example, you can create a `PULL_REQUEST_TEMPLATE/` directory in your `.github/` folder and add multiple Markdown files, one for each template.
Is the CODEOWNERS syntax complex?
The syntax is similar to `.gitignore`. Each line specifies a file pattern followed by one or more GitHub usernames or team names (e.g., `*.js @js-team`). The last matching pattern takes the most precedence.