Repository navigation
audit: flag self-submissions by commit email - #24277
Merged
Merged
Conversation
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
eb7b0cf2-8a57-4a15-920b-087ed5ac70fa
📒 Files selected for processing: 8
Library/Homebrew/cask/audit.rbLibrary/Homebrew/dev-cmd/generate-cask-ci-matrix.rbLibrary/Homebrew/formula_auditor.rbLibrary/Homebrew/test/cask/audit_spec.rbLibrary/Homebrew/test/formula_auditor_spec.rbLibrary/Homebrew/test/utils/shared_audits_spec.rbLibrary/Homebrew/utils/shared_audits.rbdocs/Package-Acceptance-Policy.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
- New cask and formula PRs for closed-source apps with little use are often self-submitted, but this is only caught by self-report or by a reviewer matching the commit author's email to the app's domain. - Treat a PR commit author whose email domain matches a non-forge `homepage`, `url` or `head` domain as a self-submission, so the existing self-submission notability thresholds apply. - Fail new packages self-submitted this way that have no repository the notability audits can assess. The message makes clear this is not an automatic rejection and that the pull request author must provide evidence of notability. - Share the notability audits' repository regexes, anchored to the start of the URL, so "no repository" means exactly what those audits cannot measure. - Add a `ci-skip-self-submission` label for casks so maintainers can skip the audit once they have judged notability themselves. - Read every page of commit emails from the GitHub API using the pull request's `commits_url` from `GITHUB_EVENT_PATH`, so checkout depth does not matter.
bevanjkay
force-pushed
the
audit_cask_formula
branch
from
October 17, 2026 03:38
f090944 to
3853882
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
78e93701-c05f-4960-9e00-f0e35b879ad9
📒 Files selected for processing: 2
Library/Homebrew/test/utils/shared_audits_spec.rbLibrary/Homebrew/utils/shared_audits.rb
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Member
Seems good. |
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.
homepage,urlorheaddomain as a self-submission, so the existing self-submission notability thresholds apply.commits_urlfromGITHUB_EVENT_PATH, so checkout depth does not matter.Open to discussion on the best way to handle the detected self-submissions. Currently failure with maintainer discretion to overrule is the method I chose.
brew benchmarkresults.brewcommands to reproduce the bug?brew lgtm(style, typechecking and tests) locally?Claude with Opus 5.5 at Extra High effort, with local review and testing.
Summary by CodeRabbit