Files
Reims-Go/.github/scripts/pr-review-language.mjs
T

82 lines
3.5 KiB
JavaScript

export const english = {
heading: "Automated code review",
mainline: "Mainline",
scope: "Review scope",
files: "effective files",
lines: "changed lines",
small: "small / low effort",
medium: "medium / medium effort",
large: "large / medium effort",
incremental: "Incremental review based on the previously reviewed commit",
comparisonUnavailable: "Mainline comparison unavailable.",
comparisonPartial: "Mainline comparison covers only some changes.",
anchorsPartial: "GitHub inline anchors cover only part of the PR.",
result: "OpenCodeReview",
warnings: "Incomplete review tasks",
tests: "CI for this PR commit",
ciRun: "CI run",
ciPassed: "Passed",
ciFailed: "Failed",
ciNoPass: "No passing result",
ciActionRequired: "CI needs manual action.",
ciPending: "Pending",
ciMissing: "No CI run found for this commit.",
recommendation: "Merge recommendation",
merge: "Ready to merge",
changes: "Revise and review again",
inspect: "Review the remaining changes",
awaitCI: "No code blockers found. Awaiting CI.",
conflict: "GitHub detected merge conflicts. Resolve them and request another review.",
mainMoved: "The default branch moved during this review.",
ciRequired: "This commit has no passing CI result yet.",
fixCI: "Resolve the CI failure before merging.",
fixFindings: "Address the actionable findings below before merging.",
incomplete: "Some changes or review tasks were not covered; complete the review before merging.",
inline: "Inline findings",
unanchored: "Findings without a stable inline diff anchor",
noFindings: "No actionable issues found in the reviewed changes.",
noDiff: "No reviewable text changes remained after generated and lock files were excluded.",
inlineFallback: "GitHub could not attach inline comments. See the findings below.",
};
export const chinese = {
heading: "自动代码审核",
mainline: "主线",
scope: "审核范围",
files: "个有效文件",
lines: "行变更",
small: "小改动 / 低强度",
medium: "中改动 / 中强度",
large: "大改动 / 中强度",
incremental: "已基于上次审核提交进行增量审查",
comparisonUnavailable: "GitHub 未能生成主线对照。",
comparisonPartial: "主线对照覆盖部分变更。",
anchorsPartial: "GitHub 行内锚点仅覆盖部分 PR 文件。",
result: "OpenCodeReview",
warnings: "未完成的审查任务",
tests: "当前 PR 提交的 CI",
ciRun: "CI 运行记录",
ciPassed: "通过",
ciFailed: "失败",
ciNoPass: "无通过结果",
ciActionRequired: "CI 需要人工处理。",
ciPending: "尚未完成",
ciMissing: "未找到对应提交的 CI 记录。",
recommendation: "合并建议",
merge: "可以合并",
changes: "修改后再审",
inspect: "先审完剩余改动",
awaitCI: "代码未见阻塞,等待 CI",
conflict: "GitHub 检测到合并冲突,解决后重新审核。",
mainMoved: "审核期间主线有更新。",
ciRequired: "当前提交还没有 CI 通过记录。",
fixCI: "合并前处理 CI 失败项。",
fixFindings: "合并前处理下方有证据的实质问题。",
incomplete: "部分改动或审查任务未覆盖,合并前补齐审查。",
inline: "行内问题",
unanchored: "无法稳定定位到差异行的有效问题",
noFindings: "已审核的差异中未发现可报告的问题。",
noDiff: "排除生成文件与锁文件后,没有可审核的文本改动。",
inlineFallback: "GitHub 未能附加行内评论,审核意见如下。",
};