[Schema Inaccuracy] community-profile files.issue_template is null for a .github/ISSUE_TEMPLATE/ directory the community page counts

Open
#7,187 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github, openapi
Domain
api

Research direction

Start with the community-profile schema and the GET /repos/{owner}/{repo}/community/profile response described in the issue. Compare .github/ISSUE_TEMPLATE/ directory results with the legacy .github/ISSUE_TEMPLATE.md example using the provided curl requests; done when the schema accurately documents or represents directory-based issue templates.

Written by the indexing model from the issue text.

Description

feature

Schema Inaccuracy

The community-profile schema (GET /repos/{owner}/{repo}/community/profile) describes files.issue_template as a nullable community-health-file, and the operation summary says the response reports "the presence of ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE, README, and CONTRIBUTING files". At runtime the field is null for every repository whose templates live under .github/ISSUE_TEMPLATE/ (Markdown or YAML issue forms), even though the community profile page marks "Issue templates" as added and health_percentage counts them. The field is only non-null for the single legacy file .github/ISSUE_TEMPLATE.md.

Expected

Either the runtime behavior matches the description (the field reports the same presence the community page and health_percentage use, so a .github/ISSUE_TEMPLATE/ directory counts), or the description of files.issue_template says that it only reports the legacy single file ISSUE_TEMPLATE.md and not a templates directory, so a consumer knows to list the directory instead.

Reproduction Steps

Measured on 2026-09-12 against public repositories:

# .github/ISSUE_TEMPLATE/ holds four YAML issue forms and config.yml; the community page shows 100 % with "Issue templates" added
curl -s -H "Authorization: Bearer $TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/jmrplens/gitlab-mcp-server/community/profile | jq '{health_percentage, issue_template: .files.issue_template}'
# {"health_percentage": 100, "issue_template": null}

# .github/ISSUE_TEMPLATE/ holds three Markdown templates
curl -s ... https://api.github.com/repos/cli/cli/community/profile | jq '{health_percentage, issue_template: .files.issue_template}'
# {"health_percentage": 100, "issue_template": null}

# the single legacy file .github/ISSUE_TEMPLATE.md
curl -s ... https://api.github.com/repos/github/gh-ost/community/profile | jq '.files.issue_template.url'
# "https://api.github.com/repos/github/gh-ost/contents/.github/ISSUE_TEMPLATE.md"

The GraphQL side of the same gap (Repository.issueTemplates omits YAML issue forms and the legacy file) is reported with the full comparison table in the community forum: https://github.com/orgs/community/discussions/207706

Dominant language
No language data
Stars
1.6k
Forks
342
Avg merge
3h 33m
Merged PRs (30d)
51

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/rest-api-description

All issues in github/rest-api-description

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.