Skip to content

Close API-created issues that do not match a template#22424

Open
MikeMcQuaid wants to merge 1 commit into
mainfrom
lush-theater
Open

Close API-created issues that do not match a template#22424
MikeMcQuaid wants to merge 1 commit into
mainfrom
lush-theater

Conversation

@MikeMcQuaid
Copy link
Copy Markdown
Member

  • Keep issue and pull request checks isolated so each workflow has a narrower trigger and permission surface.
  • Share template matching in .github/scripts/check-template.rb so issue and pull request behaviour stays consistent.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them? Performance claims (e.g. "this is faster") must include Hyperfine benchmarks.
  • Have you written new tests (excluding integration tests) for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR.

OpenAI 5.5 xhigh with local review and testing.


Copilot AI review requested due to automatic review settings May 26, 2026 19:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR separates issue and pull request template checks while sharing the template-matching logic through a new Ruby script used by both workflows.

Changes:

  • Renames and narrows the existing pull request workflow to use a shared template checker.
  • Adds a new issue workflow that closes newly opened issues whose bodies do not match required issue-form templates.
  • Introduces .github/scripts/check-template.rb with pull-request and issue modes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/check-prs.yml Updates the PR workflow name/concurrency and replaces inline Ruby template checking with the shared script.
.github/workflows/check-issues.yml Adds an issue-opened workflow that fetches trusted issue templates/checker and closes incomplete issues.
.github/scripts/check-template.rb Adds shared Ruby logic for validating PR templates and issue-form templates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/scripts/check-template.rb Outdated
Comment thread .github/scripts/check_template.rb Fixed
- Keep issue and pull request checks isolated so each workflow has a
  narrower trigger and permission surface.
- Share template matching in `.github/scripts/check_template.rb` so issue
  and pull request behaviour stays consistent.
- Close new API-created issues that do not provide required template
  responses.
Comment thread .github/scripts/check_template.rb Dismissed
@MikeMcQuaid MikeMcQuaid requested a review from p-linnane May 27, 2026 16:50
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