Repository navigation
feat(线): 新增 dyro line push 并更新推送说明 - #81
Merged
Merged
Conversation
顶层线此前没有 Dyro 自己的发布路径。新命令在 L1→L2 锁内预检全部 linked-worktree 仓库后,用显式同名 refspec 逐仓推送并设置上游, 锚点取推送前后一致的分支 tip;anchor-reference 仓库跳过。 PUSH_DISABLED_NOTE 同步提到 dyro line push;已 seed 的工作区需运行 dyro host seed --force。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 14, 2026
Merged
This branch had an error being deployed
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.
背景
开发线自己的分支此前只能通过
line merge --push、line sync --push或task merge --push推到远端;顶层线没有 Dyro 自己的发布路径,只能用普通git push,而普通 push 不写[remote_anchors]。改动
新增
dyro line push LINE [--dry-run] [--yes]:policy.allow_push = true,真实执行需要--yes。line merge --push相同:先取 L1 合并锁,再按仓库 ID 升序取 L2 anchor 锁;锁内重读清单,该线有任何未完成的操作(merge、merge-into-base、retire)时拒绝。linked-worktree仓库,anchor-reference仓库跳过。git push --dry-run成功。git push -u origin refs/heads/<b>:refs/heads/<b>。显式同名 refspec,push.default=upstream也无法把目标改到别的远端分支;-u同时把上游纠正为origin/<b>。不使用 force。[remote_anchors]。锚点取推送前后各读一次、两次一致的分支 tip;推送期间分支移动则报错,不写锚点。line_push_failed。推送说明
PUSH_DISABLED_NOTE已同步提到dyro line push。这段说明出现在next的push_note、工作区和开发线说明、控制面技能里;新增测试断言控制面技能资产与它逐字一致。升级影响
已 seed 的工作区运行 doctor 会报说明模板不一致,运行一次
dyro host seed --force即可。验证
tests/test_line_push.py,共 18 项测试。ruff check src tests experiments无问题。范围外发现(未修改)
已有的
line merge --push和task merge --push在写锚点时取的是推送之后的HEAD,推送用的是不带 refspec 的git push origin <branch>。工作区被切走,或遇到push.default=upstream加异名上游时,锚点可能和实际推送的提交不一致。