Pull Request已成功合入, 合并人@cangjie-ci
(感谢 2501_93903314 的贡献)PR创建成功通知 | 感谢您的贡献 🎉
您好!系统已检测到您成功创建 Pull Request(PR),感谢您对项目的支持与参与!以下几点需要您着重关注:
一、PR必须关联Issue ❗️
触发门禁检查的必要步骤:在PR描述框输入Issue完整链接,完成Issue关联。
请注意,一个 Issue 不能同时关联同一 base 仓库内同一个分支的多个开启状态的 PR
二、门禁触发规则 🔧
- 门禁类型判定:由Issue关联的PR所属代码仓数量决定
- 关联多个代码仓PR:触发「多仓联合门禁」
- 关联单个代码仓PR:触发「单仓门禁」
- 启动指令与检查范围:需主动回复指令:
- 回复 "start build":执行Cangjie的主要基础检查,包含commit格式检查、静态告警分析、OAT开源声明检查、多平台构建、单元/集成测试等
- 关联同一issue的多个PR,仅需在任意一个PR里回复触发一次门禁,该PR门禁通过后,所有PR都会添加Label和测试人
- 每个pr只能同时运行一条CI流水线,如需重新启动,请先关闭运行中的,再评论触发门禁
- Markdown修改仅触发文档类构建测试门禁,不会触发Cangjie的编译测试门禁
- commit 信息格式请遵循:Conventional Commits 规范
- 请保证每一条 commit 都已添加
Signed-Off-By信息 - 回复 "start build cov":执行覆盖率构建工程,生成该提交的增量代码覆盖率报告
三、合入条件 ⚠️
- 满足最低评审人数,且评审问题需全部解决;
- 禁止合入本人创建的PR,需由其他协作者操作;
- 合并前确保关联流水线任务运行成功(build-test-passed);
- 需求类覆盖率门禁:当关联的 Issue 标题以
[feature]:开头(需求类 Issue)时,联合提交中属于cangjie_compiler、cangjie_runtime、cangjie_stdx、cangjie_tools、llvm-project仓库的 PR,必须先回复 "start build cov" 触发增量覆盖率流水线并通过,使 PR 获得cov-test-passed标签后方可合入。
四、合并PR ✅
回复 "start merge",CI流水线会自动检查所有关联PR的状态、版本号标签、检视意见密度、兼容性、需求类覆盖率门禁,若所有PR都满足合并条件,则将会同时合并所有PR。若存在不满足合并条件的PR,则不会合并任何PR。
如果希望不进行兼容性相关的检测,请任一合法审查人复制以下内容,在 start merge 前提交评论:
本 pr 不需要兼容性相关检测,对于引发的任何兼容性问题(即由于本 pr 合入将导致用户需适配代码的话),由本人承担。
If you wish to avoid compatibility-related checks, please have any approver copy the following content and submit it as a comment before sending start merge:
This PR does not require compatibility-related checks. For any compatibility issues caused by this PR (i.e., if the integration of this PR will require users to adapt their code), I will take full responsibility.
五、补充说明 📢
- 详细仓颉贡献流程:贡献流程(Cangjie Community Contribution)
- 门禁结果将自动评论至关联的所有PR,敬请留意。


🔨 构建/测试门禁流水线
已启动,正在后台运行中,您可以点击构建/测试门禁详情查看运行状态。
构建/测试门禁执行流程:
graph LR
A[PR检测] --> B[联合构建]
B[联合构建] --> C[测试运行]
检查内容包括
- commitlint检查
- 构建任务
- linux x64、mac aarch64、windows x64
- 测试任务
- UT、HLT、LLT
构建/测试门禁产物归档路径: obs://cangjie103/CangjieDaily/pub/ci/gate/main/cangjie_tools/1266


start build


🔨 构建/测试门禁
当前 PR 已有运行中的流水线,无法启动新的构建/测试门禁流水线。点击查看:运行中流水线详情


start merge


⏳ 正在进行兼容性检测中,可能需要2~3分钟,请稍候,若10分钟无检测结果,请重新回复 start merge。
⏳ Compatibility check in progress. It may take 2–3 minutes. Please wait. If there is no result after 10 minutes, please reply with start merge again.


✅ 合入前兼容性检测通过。
涉及仓库:Cangjie/cangjie_tools
结论
- 分析过程:分析了 Cangjie/cangjie_tools#1266。已获取 PR 元数据、提交、变更文件及父提交到 PR head 的完整 diff;仅检查 hyperlangExtension/src/main.cj 的 5 处字符串和注释修改。Reviewed Cangjie/cangjie_tools#1266. Fetched the PR metadata, commit, changed files, and complete parent-to-head diff; the PR changes only five strings/comments in hyperlangExtension/src/main.cj.
- 原因:兼容。改动仅修正文案、英文拼写和注释说明,不改变仓颉公开 API、函数签名、CLI 选项、参数解析、输出路径处理、运行时行为或生成结果,因此不会破坏现有调用方或用户流程。Compatible. The changes only correct wording, English spelling, and comments; they do not change Cangjie public APIs, function signatures, CLI options, argument parsing, output-path handling, runtime behavior, or generated results, so existing consumers and user workflows remain compatible.
- 结论:兼容


⚠️ 合入前检查失败:版本 label 1.3.0-alpha.04 对应的 tag 已存在于仓库中,请更新 label 的版本号。
- PR: Cangjie/cangjie_tools#1266
- 版本 label : 1.3.0-alpha.04
- 已存在的 tag: v1.3.0-alpha.04
- 如果你想在当前版本合入,可以通过 'delay' label 后重新回复 start merge
⚠️ Merge check failed: tag(s) for version label 1.3.0-alpha.04 already exist(s) in the repository, duplicate merge is not allowed.
- PR: Cangjie/cangjie_tools#1266
- Version label: 1.3.0-alpha.04
- Existing tag(s): v1.3.0-alpha.04
- You can add 'delay' label to skip the version label check for this PR (meaning this PR is merged after the tag is created)


⚠️ 合入前检查失败:带有 "bug" label 的 issue 必须包含问题发现的版本号 label(语义化版本号,如 1.2.3)。
以下 issue 缺少版本号 label:
- Issue #681: [Bug]: 处理了语法问题
请为相关 issue 添加版本号 label 后重新触发合入。
⚠️ Merge check failed: issues with "bug" label must have the version label of the problem found (semantic version, e.g., 1.2.3).
The following issues are missing version labels:
- Issue #681: [Bug]: 处理了语法问题
Please add version labels to the related issues and retry the merge.


start merge


⏳ 正在进行兼容性检测中,可能需要2~3分钟,请稍候,若10分钟无检测结果,请重新回复 start merge。
⏳ Compatibility check in progress. It may take 2–3 minutes. Please wait. If there is no result after 10 minutes, please reply with start merge again.


✅ 合入前兼容性检测通过。
涉及仓库:Cangjie/cangjie_tools
结论
- 分析过程:分析了 Cangjie/cangjie_tools#1266。已获取 PR 元数据、提交、变更文件及父提交到 PR head 的完整 diff;仅检查 hyperlangExtension/src/main.cj 的 5 处字符串和注释修改。Reviewed Cangjie/cangjie_tools#1266. Fetched the PR metadata, commit, changed files, and complete parent-to-head diff; the PR changes only five strings/comments in hyperlangExtension/src/main.cj.
- 原因:兼容。改动仅修正文案、英文拼写和注释说明,不改变仓颉公开 API、函数签名、CLI 选项、参数解析、输出路径处理、运行时行为或生成结果,因此不会破坏现有调用方或用户流程。Compatible. The changes only correct wording, English spelling, and comments; they do not change Cangjie public APIs, function signatures, CLI options, argument parsing, output-path handling, runtime behavior, or generated results, so existing consumers and user workflows remain compatible.
- 结论:兼容


⚠️ 合入前检查失败:每个 PR 必须有且仅有一个语义化版本 label ,并且联合提交的多个 PR 的版本 label 需一致。
- Cangjie/cangjie_tools#1266: 检测到多个语义化版本 label ['1.2.0-alpha.05', '1.3.0-alpha.04'],请仅保留一个
⚠️ Merge check failed: each PR must have exactly one semantic version label (SemVer), and all PRs must share the same version.


start merge


⏳ 正在进行兼容性检测中,可能需要2~3分钟,请稍候,若10分钟无检测结果,请重新回复 start merge。
⏳ Compatibility check in progress. It may take 2–3 minutes. Please wait. If there is no result after 10 minutes, please reply with start merge again.


✅ 合入前兼容性检测通过。
涉及仓库:Cangjie/cangjie_tools
结论
- 分析过程:分析了 Cangjie/cangjie_tools#1266。已获取 PR 元数据、提交、变更文件及父提交到 PR head 的完整 diff;仅检查 hyperlangExtension/src/main.cj 的 5 处字符串和注释修改。Reviewed Cangjie/cangjie_tools#1266. Fetched the PR metadata, commit, changed files, and complete parent-to-head diff; the PR changes only five strings/comments in hyperlangExtension/src/main.cj.
- 原因:兼容。改动仅修正文案、英文拼写和注释说明,不改变仓颉公开 API、函数签名、CLI 选项、参数解析、输出路径处理、运行时行为或生成结果,因此不会破坏现有调用方或用户流程。Compatible. The changes only correct wording, English spelling, and comments; they do not change Cangjie public APIs, function signatures, CLI options, argument parsing, output-path handling, runtime behavior, or generated results, so existing consumers and user workflows remain compatible.
- 结论:兼容


⚠️ 合入前检查失败:版本 label 1.2.0-alpha.05 对应的 tag 已存在于仓库中,请更新 label 的版本号。
- PR: Cangjie/cangjie_tools#1266
- 版本 label : 1.2.0-alpha.05
- 已存在的 tag: v1.2.0-alpha.05
- 如果你想在当前版本合入,可以通过 'delay' label 后重新回复 start merge
⚠️ Merge check failed: tag(s) for version label 1.2.0-alpha.05 already exist(s) in the repository, duplicate merge is not allowed.
- PR: Cangjie/cangjie_tools#1266
- Version label: 1.2.0-alpha.05
- Existing tag(s): v1.2.0-alpha.05
- You can add 'delay' label to skip the version label check for this PR (meaning this PR is merged after the tag is created)


start merge


⏳ 正在进行兼容性检测中,可能需要2~3分钟,请稍候,若10分钟无检测结果,请重新回复 start merge。
⏳ Compatibility check in progress. It may take 2–3 minutes. Please wait. If there is no result after 10 minutes, please reply with start merge again.


✅ 合入前兼容性检测通过。
涉及仓库:Cangjie/cangjie_tools
结论
- 分析过程:分析了 Cangjie/cangjie_tools#1266。已获取 PR 元数据、提交、变更文件及父提交到 PR head 的完整 diff;仅检查 hyperlangExtension/src/main.cj 的 5 处字符串和注释修改。Reviewed Cangjie/cangjie_tools#1266. Fetched the PR metadata, commit, changed files, and complete parent-to-head diff; the PR changes only five strings/comments in hyperlangExtension/src/main.cj.
- 原因:兼容。改动仅修正文案、英文拼写和注释说明,不改变仓颉公开 API、函数签名、CLI 选项、参数解析、输出路径处理、运行时行为或生成结果,因此不会破坏现有调用方或用户流程。Compatible. The changes only correct wording, English spelling, and comments; they do not change Cangjie public APIs, function signatures, CLI options, argument parsing, output-path handling, runtime behavior, or generated results, so existing consumers and user workflows remain compatible.
- 结论:兼容


✅ 以下PR将同时合入:
- Cangjie/cangjie_tools#1266: 【社区学习赛】docs: 修改错误的print说明main.cj
✅ The following PRs will be merged simultaneously:
- Cangjie/cangjie_tools#1266: 【社区学习赛】docs: 修改错误的print说明main.cj


变更内容(必填)
本次Pull Request修复了代码中指定行号的注释、提示文案的语言类错误,具体修改明细如下:
1. 行号106:修复英文语法错误,将 not exists 修改为 does not exist ,补充缺失的助动词,符合英文语法规范
2. 行号209:修复术语不一致问题,将 ArkTS文件路径 修改为 d.ts或d.ets 文件路径 ,与代码实际处理的文件类型保持一致
3. 行号210:修复语义错误,将 输出的Cangjie文件路径 修改为 输出的Cangjie文件目录 ,准确匹配 -o 参数的输出目录语义
4. 行号305:修复英文拼写错误,将 direcotry 修改为正确拼写 directory
5. 行号414(对应原文件413行):修复语句不完整问题,将 可以考虑扩容Global 修改为 可以考虑扩展 GlobalConfig 类 ,补全语义,明确代码优化方向
变更类型(必填)
请描述本次Pull Request变更类型(原因),请在保存后点击复选框或在编辑时将对应项前面的
[ ]改为[X]。变更内容自检(必填)
请勿修改或删除以下选项内容,请在保存后点击复选框或在编辑时将对应项前面的
[ ]改为[X]。编译本地自验证结果:
测试用例本地自验证结果:
改动仅涉及字符串打印和注释
关联的issue(必填)
https://gitcode.com/Cangjie/cangjie_tools/issues/681