Skip to content

Report the correct issue template#458

Merged
MikeMcQuaid merged 1 commit into
mainfrom
correct-issue-template
Jul 17, 2026
Merged

Report the correct issue template#458
MikeMcQuaid merged 1 commit into
mainfrom
correct-issue-template

Conversation

@MikeMcQuaid

Copy link
Copy Markdown
Member
  • Restrict missing-field guidance to the current repository.
  • Keep accepting complete templates from sibling repositories.
  • Fall back to GITHUB_REPOSITORY while synced callers update.

- Restrict missing-field guidance to the current repository.
- Keep accepting complete templates from sibling repositories.
- Fall back to `GITHUB_REPOSITORY` while synced callers update.
Copilot AI review requested due to automatic review settings July 17, 2026 13:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.rb to 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.

Comment thread .github/scripts/check_template.rb
Comment thread .github/scripts/check_template.rb
@MikeMcQuaid
MikeMcQuaid merged commit 1e8b1ae into main Jul 17, 2026
27 checks passed
@MikeMcQuaid
MikeMcQuaid deleted the correct-issue-template branch July 17, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants