GitHub Repository Templates Generator
Answer a few questions about your project and get the community health files GitHub looks for, with a CODEOWNERS checker and issue forms that validate input.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Describe the project
Enter the project name, repository URL, contact email, Discussions link and default branch.
- 2Set up issues and PRs
Choose issue forms or Markdown, which templates, labels, versions and the PR checklist.
- 3Add code owners
Write pattern and owner rules and fix anything the checker reports.
- 4Write the guides
Enter install, test and lint commands, commit style, sign-off and code of conduct choice.
- 5Review each file
Open each generated file, read it and adjust settings until the wording fits.
- 6Download and commit
Download the ZIP, unzip it at the repository root and commit the files to the default branch.
Sobre aquesta eina
An open source project, or any repository that more than one person touches, runs more smoothly with a handful of standard files. Issue templates make bug reports arrive with steps to reproduce and a version number instead of a one-line complaint. A pull request template reminds contributors to link the issue and say how they tested. CODEOWNERS asks the right people for review automatically. CONTRIBUTING explains how to set up the project and what a good pull request looks like, a code of conduct sets expectations for behaviour, and SECURITY tells people how to report a vulnerability privately instead of in a public issue. GitHub recognises all of these and links them in the right places, but each has its own folder, file name and format. This generator writes them together from one form. Issue templates can be modern issue forms in YAML, with required fields, a version drop-down built from your list of supported versions, an operating system multi-select, a logs box rendered as code and a duplicate-search checkbox, or classic Markdown templates. The chooser config can turn off blank issues and point questions to Discussions and security reports to your policy page. The CODEOWNERS editor checks every owner and pattern against GitHub's rules and warns when a catch-all rule is in the wrong place. CONTRIBUTING includes your real install, test and lint commands, branch naming, Conventional Commits and optional DCO sign-off or CLA notes.
Issue forms or Markdown templates?
Issue forms show a real form with labelled fields, drop-downs and required checks, so reports are complete and consistent, and the answers still end up as Markdown in the issue. Markdown templates prefill the issue body with headings people may delete. Forms are the better default on github.com; choose Markdown if you also mirror the repository elsewhere.
CODEOWNERS rules worth knowing
The last matching line wins, so put the catch-all * first and specific paths below it. Owners must be @username, @org/team-name or an email address linked to a GitHub account, and teams need write access. Negated patterns with ! and character ranges in square brackets are not supported, and the checker flags both.
Limits
These files are templates: read them and adjust the wording to your project before committing. The code of conduct option adopts the Contributor Covenant by reference and links to its official text rather than copying it, or gives a short plain-language version written for this tool. This is not legal advice about licences, CLAs or security disclosure. Labels named in the templates must exist in your repository. Nothing is uploaded or pushed to GitHub.
Exemple resolt
For a project called Tiny Notes with versions 1.4.x and 1.3.x, bug and feature forms, a pull request checklist of three items and three CODEOWNERS rules (* @octocat, /docs/ @octocat/docs-team, *.css @design-lead), the ZIP holds 8 files: bug_report.yml, feature_request.yml and config.yml in .github/ISSUE_TEMPLATE, pull_request_template.md and CODEOWNERS in .github, plus CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md at the root. The bug form's version drop-down offers 1.4.x, 1.3.x and Other, and the checker reports no problems.
En resum
- Categoria: Desenvolupament i dades
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: GitHub Docs: Syntax for issue forms, About code owners and Setting up your project for healthy contributions
Preguntes freqüents
Where do these files go in my repository?
Issue templates and their config go in .github/ISSUE_TEMPLATE, the pull request template and CODEOWNERS in .github, and CONTRIBUTING, CODE_OF_CONDUCT, SECURITY and SUPPORT at the root. GitHub also accepts some of them in a docs folder. The ZIP already has the folders, so unzip it at the root of the repository.
Can I use one set of templates for all my repositories?
Yes, for most of them. Create a public repository named .github in your organisation or account and put the files there. Repositories without their own copies use them as defaults. CODEOWNERS is the exception: it must live in each repository.
Why are my labels not applied to new issues?
Labels in a template are only applied if a label with that exact name already exists in the repository. Create them under Issues, Labels, or change the label names in the form to ones you already use.
What does blank issues enabled do?
When it is false, people must pick one of your templates or one of the contact links, which keeps reports structured. Maintainers can still open blank issues. Set it to true if you want a free-form option for everyone.
What is DCO sign-off?
The Developer Certificate of Origin is a short statement that a contributor wrote the code or has the right to submit it. Contributors agree to it by adding a Signed-off-by line, which git commit -s does automatically. Some projects enforce it with a check on every pull request.
Should the security policy include an email address?
Give at least one private channel. GitHub's private vulnerability reporting, switched on in the repository's security settings, is the easiest, and an email address is a good backup. Never ask people to report vulnerabilities in public issues.
