fix: auto-review task poll 403#9
Merged
Merged
Conversation
提交 review 任务时传 user_id,轮询时带 user_id 查询参数, 解决无 owner 任务被 403 拒绝的问题。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Auto Review (Round 1) — ✅ Approved 第 1 轮审查:Approve with Suggestions。核心问题修复正确,逻辑合理。发现 2 个 Warning(硬编码 user_id 可能导致权限混乱、错误处理缺失)和 2 个 Suggestion(环境变量配置、日志补充)。 核心改进:1) 提交任务时传入 user_id: github-actions 使任务有 owner;2) 轮询 URL 加 ?user_id=github-actions 查询参数解决 403。修复方案直接有效,符合 API 权限设计。 |
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.
Summary
user_id: github-actions,使任务有 owner?user_id=github-actions查询参数,解决 403 拒绝Root Cause
auto-review 提交 review 任务时没传 user_id,导致任务无 owner,轮询
/tasks/{task_id}时被 403 拒绝。