Synchronise template checks#441
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds and syncs automated issue/PR template validation across Homebrew’s active public template repositories, using API-fetched trusted code (rather than checked-out PR head code) to safely enforce template completeness.
Changes:
- Introduces
check-issues.ymlandcheck-prs.ymlworkflows to comment/close and later reopen items once templates are complete. - Adds a shared Ruby
check_template.rbvalidator used by both workflows. - Updates the sync action config to distribute (or remove) the template-check workflows/script only for
Homebrew/brew,Homebrew/homebrew-core, andHomebrew/homebrew-cask.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/check-prs.yml |
New pull_request_target workflow to validate PR template completion and manage closing/reopening with comments. |
.github/workflows/check-issues.yml |
New workflow to validate issue forms against templates from the three Homebrew repos and manage closing/reopening. |
.github/scripts/check_template.rb |
Adds Ruby logic to detect whether PRs/issues preserved enough of the relevant template structure and (for PRs) retained AI disclosure. |
.github/actions/sync/shared-config.rb |
Syncs the new workflows and checker script to supported repos and removes them from unsupported ones. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Share issue and pull request template checks across active public template repositories. - Sync `check_template.rb` with the workflows so each target repository validates templates from trusted base-branch code. - Ignore template HTML comments when checking AI disclosure. - Remove stranded template-check files from unsupported target repositories during sync. - Limit syncing to `Homebrew/brew`, `Homebrew/homebrew-core` and `Homebrew/homebrew-cask`.
8265d1a to
00b320f
Compare
p-linnane
approved these changes
Jun 19, 2026
p-linnane
left a comment
Member
There was a problem hiding this comment.
Always happy to see more automtation
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.
check_template.rbwith the workflows so each target repository validates templates from trusted base-branch code.Homebrew/brew,Homebrew/homebrew-coreandHomebrew/homebrew-cask.