GH-900 practice question 8 of 15

What folder is the definition files stored in when creating custom issue forms?

Full set: 144 questions
Answer options
A: .issues
B: .issues/ISSUE_TEMPLATE
C: .github/ISSUE_TEMPLATE Correct answer
D: .GitHub
Correct Answer:
C. .github/ISSUE_TEMPLATE
Explanation

GitHub recognizes issue template files stored in a specific directory within a repository. To create custom issue forms using YAML or traditional issue templates using Markdown, the definition files must be placed in the .github/ISSUETEMPLATE directory. When a user clicks "New issue" in the repository, GitHub scans this folder and presents the configured templates as options. This structured approach ensures that repository-specific metadata and configurations are organized centrally within the hidden .github directory, which is the standard convention for such files.

Why Incorrect

A. .issues: This is not a conventional or recognized directory for storing GitHub issue template definition files.
B. .issues/ISSUETEMPLATE: The correct parent directory for repository metadata is .github, not .issues.
D. .GitHub: While this is the correct parent directory, the template files must be placed within the ISSUETEMPLATE subdirectory to be properly recognized by GitHub.

References

1. GitHub Docs. "Configuring issue templates for your repository." GitHub

Inc. Accessed May 2024. In the section "Creating issue forms

" the documentation explicitly states: "In the .github/ISSUETEMPLATE directory of your repository

create a new file ending with the .yml extension."

Source: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms

2. GitHub Docs. "About issue and pull request templates." GitHub

Inc. Accessed May 2024. This document outlines the locations for templates: "You can create an ISSUETEMPLATE subdirectory in any of the supported folders... The supported folders are the root directory

the .github folder

or the docs folder." The .github folder is the most common and recommended location.

Source: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates

Scroll to Top