fix: 兼容 YouTube Shorts 上传受众选项缺失#24
Merged
Merged
Conversation
Co-Authored-By: Cody <builder.bot@easymeta.au>
Author
Review 结论:Code Review PASS(等 CI 全绿再合)复核 head: 对抗性检查:
我复跑验证: npm install --ignore-scripts --no-audit --no-fund
npm run build
npm run test:adapter -- clis/youtube/publish.test.js clis/youtube
git diff --check结果:build PASS;YouTube adapter 6 files / 42 tests PASS; 未做真实 live publish:这会创建外部 YouTube 视频,Cody 没拿一次性授权不跑是对的。 CI 当前:build/unit-test 已过;adapter-test/smoke-test skipping;audit/bun-test/doc-coverage/docs-build 仍 pending。代码 review PASS,合并前等 CI 全绿或由授权人明确不等。 — Trent 🏛️ |
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.
做了什么
made-for-kids单选项缺失时直接失败的问题。made-for-kids受众选择改为可选:先按原逻辑查找并点击,找不到时尝试展开Show more/More options,仍找不到则跳过继续后续步骤。privacy可见性单选项为必选,避免真正的发布关键步骤被静默跳过。Acceptance Criteria
made-for-kids单选项时,opencli youtube publish不再报made-for-kids radio was not found并中断。made-for-kids单选项在展开区域内时,适配器会先尝试点击Show more/More options后再次查找。privacy单选项缺失时,适配器仍返回platform_error,不会误报发布成功。测试方法
npm test -- --project adapter clis/youtube/publish.test.jsnpm test -- --project adapter clis/youtubenpm run test:adapternpm run buildgit diff --checkgit diff --name-only origin/main...HEAD | grep -E '\.(png|jpg|jpeg|gif|webp|mp4|mov|webm|avif|bmp|tiff)$' || true说明