require-gitlab-issue-template-file
Require at least one GitLab issue template.
Targeted pattern scopeâ
This rule checks .gitlab/issue_templates/ for at least one Markdown file.
Accepted files must match:
.gitlab/issue_templates/*.md
What this rule reportsâ
This rule reports repositories that enable GitLab-oriented presets without any GitLab issue template files.
Why this rule existsâ
Issue templates help GitLab repositories collect consistent problem statements, reproduction details, and request context.
That makes triage more predictable and reduces the amount of manual follow-up needed before an issue becomes actionable.
â Incorrectâ
// Repository files
// .
// âââ .gitlab-ci.yml
// âââ README.md
// âââ .gitlab/
// âââ merge_request_templates/
//
// Missing: .gitlab/issue_templates/*.md
â Correctâ
// Repository files
// .
// âââ .gitlab/
// âââ issue_templates/
// âââ bug.md
ESLint flat config exampleâ
import repoPlugin from "eslint-plugin-repo";
export default [
repoPlugin.configs.gitlab,
{
plugins: { "repo-compliance": repoPlugin },
rules: {
"repo-compliance/require-gitlab-issue-template-file": "error",
},
},
];
When not to use itâ
Disable this rule only if your GitLab project intentionally accepts free-form issue creation or uses a separate intake workflow.
Rule catalog ID: R013