Configuring Pull Request and Issue Templates
Introduction
Section titled โIntroductionโTemplates guide contributors to provide consistent information in pull requests and issues.
Repository Structure
Section titled โRepository Structureโ- Pull request template:
.github/pull_request_template.md
- Issue templates:
.github/ISSUE_TEMPLATE/bug_report.md
,.github/ISSUE_TEMPLATE/feature_request.md
Enable Default Templates
Section titled โEnable Default Templatesโ- Commit the template files to the default branch.
- For issue templates, include a
.yml
file in.github/ISSUE_TEMPLATE/
describing each template. - To make a default pull request template, name it
pull_request_template.md
in the.github
directory. - Optional: enable discussion templates for GitHub Discussions.
Example Pull Request Template
Section titled โExample Pull Request Templateโ## Summary-
## Testing- [ ] `npm test`