require-issue-template-file
Require at least one issue template for structured reports.
Targeted pattern scopeâ
This rule checks for repository issue templates in the GitHub-style issue template directory.
Accepted files must exist under:
.github/ISSUE_TEMPLATE/*.md.github/ISSUE_TEMPLATE/*.yml.github/ISSUE_TEMPLATE/*.yaml
What this rule reportsâ
This rule reports repositories that do not provide any accepted issue template files.
Why this rule existsâ
Issue templates improve report quality by prompting users for the details your team actually needs to triage work.
That usually means fewer low-context bug reports and less back-and-forth before someone can act on an issue.
â Incorrectâ
// Repository files
// .
// âââ README.md
// âââ package.json
// âââ .github/
// âââ workflows/
//
// Missing: .github/ISSUE_TEMPLATE/*.md|*.yml|*.yaml
â Correctâ
// Repository files
// .
// âââ .github/
// âââ ISSUE_TEMPLATE/
// âââ bug-report.yml
// Repository files
// .
// âââ .github/
// âââ ISSUE_TEMPLATE/
// âââ feature-request.md
ESLint flat config exampleâ
import repoPlugin from "eslint-plugin-repo";
export default [
repoPlugin.configs.strict,
{
plugins: { "repo-compliance": repoPlugin },
rules: {
"repo-compliance/require-issue-template-file": "error",
},
},
];
When not to use itâ
Disable this rule only if your repository intentionally accepts free-form issue creation or uses an external intake system instead of repository issue templates.
Rule catalog ID: R008