-
Notifications
You must be signed in to change notification settings - Fork 367
Add LOW_QUALITY support to comment minimization reasons across safe outputs #27397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5672,10 +5672,10 @@ | |
| }, | ||
| "allowed-reasons": { | ||
| "type": "array", | ||
| "description": "List of allowed reasons for hiding older comments when hide-older-comments is enabled. Default: all reasons allowed (spam, abuse, off_topic, outdated, resolved).", | ||
| "description": "List of allowed reasons for hiding older comments when hide-older-comments is enabled. Default: all reasons allowed (spam, abuse, off_topic, outdated, resolved, low_quality).", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["spam", "abuse", "off_topic", "outdated", "resolved"] | ||
| "enum": ["spam", "abuse", "off_topic", "outdated", "resolved", "low_quality"] | ||
| } | ||
| }, | ||
| "discussions": { | ||
|
|
@@ -7215,10 +7215,10 @@ | |
| }, | ||
| "allowed-reasons": { | ||
| "type": "array", | ||
| "description": "List of allowed reasons for hiding comments. Default: all reasons allowed (spam, abuse, off_topic, outdated, resolved).", | ||
| "description": "List of allowed reasons for hiding comments. Default: all reasons allowed (spam, abuse, off_topic, outdated, resolved, low_quality).", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": ["spam", "abuse", "off_topic", "outdated", "resolved"] | ||
| "enum": ["spam", "abuse", "off_topic", "outdated", "resolved", "low_quality"] | ||
| } | ||
|
Comment on lines
7216
to
7222
|
||
| }, | ||
| "discussions": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs update the hide-comment reasons list to include low_quality, but the earlier “Hide Older Comments” section (add-comment.hide-older-comments) still lists allowed reasons without low_quality. Since the implementation uppercases and forwards the classifier to minimizeComment, LOW_QUALITY is supported there too—please update the hide-older-comments reason list to keep docs consistent.