Report the correct issue template#458
Merged
Merged
Conversation
- Restrict missing-field guidance to the current repository. - Keep accepting complete templates from sibling repositories. - Fall back to `GITHUB_REPOSITORY` while synced callers update.
carlocab
approved these changes
Jul 17, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the issue-template checker so that, when an issue body is incomplete, the “missing fields” guidance is derived only from templates belonging to the current repository (while still accepting sufficiently-complete templates from sibling repositories). This aligns the reported guidance with the repo the issue was opened in and avoids suggesting unrelated template sections.
Changes:
- Pass the current repository (
GITHUB_REPOSITORY) into the issue-template checker from the issues workflow. - Teach
check_template.rbto identify which templates belong to the current repo (via filename prefix) and only report missing fields from those templates. - Add a repository argument (with env fallback) for gradual caller updates.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/check-issues.yml |
Passes GITHUB_REPOSITORY into the template checker for repo-aware missing-field reporting. |
.github/scripts/check_template.rb |
Restricts missing-field output to current-repo templates while still accepting complete templates from sibling repos. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GITHUB_REPOSITORYwhile synced callers update.