-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(cli): Add review settings for attribution, default effort, and default comment #8994
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
99e99f6
feat(cli): Add review settings for attribution, default effort, and d…
wenshao cf7fd06
fix(cli): resolve review settings from operator scopes and close gate…
58455a7
test(cli): pin the review-settings operator defaults with unit tests …
d2ca371
fix(cli): share the guarded footer strip and pin the gate audit text …
edd25f9
Merge branch 'main' into review-settings
qwen-code-dev-bot 1126b3b
fix(cli): raise the repository-context array bound to 256 (#8994)
216a976
Merge branch 'main' into review-settings
qwen-code-dev-bot a060400
fix(cli): validate review setting values and tighten the review gates…
aa42fc7
fix(cli): align presubmit dedup with severityOf and normalize auto ef…
f3484cb
fix(cli): show the review settings in the settings dialog (#8994)
defa69f
Merge branch 'main' into review-settings
wenshao f77b448
fix(cli): bound the footer strip tail and match refusal advice to its…
qwen-code-ci-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
[Suggestion] R3-4: The new
review.*settings documentation omits that all three settings are read from operator scopes only — a workspace.qwen/settings.jsonis silently ignored (skipWorkspaceSettings: truein lib/review-settings.ts) — even though this page documents scope restrictions for other settings (e.g.security.allowedInsecureVoiceBaseUrls: "Only User, System, and SystemDefaults scopes are honored"). — Failure scenario: an operator follows this page and placesreview.attribution: false(orreview.comment: true,review.effort) in the repository's.qwen/settings.json— the natural location for per-repo review policy, and a scope the page's own file-type table lists as valid. The value is silently ignored with no warning anywhere: the attribution footer keeps posting, auto-commenting never activates, and nothing tells the user the scope they chose does not count. The same omission is on docs/users/features/code-review.md:186 ("insettings.json", unqualified).Suggested fix: add the scope caveat to the
reviewtable (e.g. "Read from operator scopes only (system/user); a repository's.qwen/settings.jsoncannot set these") and qualify the code-review.md sentence to the user-level file.中文说明
问题: 新增的
review.*配置文档未说明三个配置都只从操作者作用域读取——工作区.qwen/settings.json会被静默忽略(lib/review-settings.ts 中的skipWorkspaceSettings: true)——尽管本页对其他配置已有作用域限制的说明(如security.allowedInsecureVoiceBaseUrls:"Only User, System, and SystemDefaults scopes are honored")。失败场景: 运维者按本页文档把
review.attribution: false(或review.comment: true、review.effort)写进仓库的.qwen/settings.json——这是 per-repo review 策略的自然位置,且本页的文件类型表也把它列为有效作用域。该值被静默忽略、无任何告警:署名 footer 继续发布、自动评论永不生效,没有任何提示告知用户所选作用域无效。docs/users/features/code-review.md:186 存在同样遗漏("insettings.json"未加限定)。建议修复: 在
review表格补充作用域说明(如"仅从操作者作用域(system/user)读取;仓库的.qwen/settings.json无法设置这些配置"),并把 code-review.md 的表述限定到用户级文件。— qwen3.8-max via Qwen Code /review (v0.21.10)