已开启
fix(dispatch): 不再把 path 当保留 flag #12
fix(dispatch): 不再把 path 当保留 flag #12
已开启
Echo0314创建于 29 天前
Echo0314
Echo0314
29 天前

按 --help 给的 --path 调内容类操作会直接失败:

oed ag getRepoContents --owner openeuler --repo oed-cli --path README.md --dry-run
{"ok": false, "code": 1, "error": "missing_path_param", "hint": "Provide them via --params: path"}

main.py 的 _VALUE_FLAGS 里保留了 path,但仓库里没有一处读它,保留名又比 per-param 匹配先剔除,所以 help 里的 --path 永远拿不到。AtomGit 的内容类操作(getRepoContents、createRepoFile、updateRepoFile、deleteRepoFile、getRepoRawFile 等)都这样。

改成只保留 dispatcher 真正会读的 params / json / user-agent / dry-run,path 按普通参数走;没声明 path 的操作传 --path 会报 unknown_flag。回归测试补了,把 path 放回保留名跑会红。

本 PR 由 AI 辅助完成,已由提交者人工审查确认。

likedislike
合并受阻
Echo0314Echo0314
29 天前 创建了 pull request,commit e4ed766c
openeuler-ci-botopeneuler-ci-bot成员
29 天前 将liheavy,shinwell_hu,solarhu,licihua,chenyanpan,Apricity_HW设为审查人
openeuler-ci-botopeneuler-ci-bot成员
29 天前 添加了label:sig/sig-EasyLife
openeuler-ci-bot
openeuler-ci-bot成员
29 天前 评论:

Welcome To openEuler Community

Hey @weixin_45478816 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: sig-EasyLife ,
and any of the maintainers: @Apricity_HW, @chenyanpan, @licihua, @liheavy, @shinwell_hu, @solarhu ,
and any of the committers: @shinwell_hu .

likedislike
openeuler-ci-botopeneuler-ci-bot成员
29 天前 添加了label:openeuler-cla/yes
openeuler-ci-bot
openeuler-ci-bot成员
29 天前 评论:

CLA Signature Pass

weixin_45478816, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
openeuler-ci-botopeneuler-ci-bot成员
29 天前 添加了label:ci_processing
openeuler-ci-bot
openeuler-ci-bot成员
29 天前 评论:

门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/openeuler/trigger/oed-cli/15/console

likedislike
openeuler-ci-botopeneuler-ci-bot成员
29 天前 删除了label:ci_processing
openeuler-ci-bot
openeuler-ci-bot成员
29 天前 评论:
Check Name Build Result 详情 Build Details
check_sca ✅SUCCESS #15
check_package_license ⚠WARNING • 仓库copyright检查未通过: 缺少项目级Copyright声明文件
likedislike
openeuler-ci-botopeneuler-ci-bot成员
29 天前 添加了label:ci_successful
openeuler-ci-bot
openeuler-ci-bot成员
29 天前 评论:
likedislike