fix: pr +review now posts a journal comment alongside the formal review #98
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/pr-review-journal-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
pr +reviewshortcut 只调用了 GitLink 的 reviews API (POST /pulls/:id/reviews),该 API 创建的是 formal review 记录,只显示在 PR 的 "Reviews" 独立面板中,不出现在 PR 主对话 tab。导致贡献者和 reviewer 在 PR 主对话中完全看不到 review 内容。根因
GitLink(Gitea 系)有两套独立的 PR 反馈系统:
POST /pulls/:id/reviewsPOST /issues/:issueID/journals修复
pr +review在创建 formal review 后,自动同步发一条 journal 评论摘要到 PR 主对话。Journal 发送失败不影响 review 本身(静默忽略),确保 review 功能不受 journal 异常影响。格式:
## Review: {approved|rejected|commented}\n\n{content}改动
shortcuts/pr/pr.go:在 review Run 函数中新增 journal 同步逻辑(+14 行)