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.
之前的同步代码有问题,因为
TG908/fork-sync@v1.1
已经不存在了。已经修复了这个问题并经过了测试,但是还有几个隐含的问题:1.在同步后,相对于上游仓库会多一个提交记录,这会导致版本检测时使用领先一个提交的版本号;2.默认生成的
GITHUB_TOKEN
没有更新workflow配置文件的权限,这意味着如果上游仓库中的其他的workflow配置文件(如:docker.yml)发生更新,下游仓库不能同步这些更新。解决方法有两种:
workflow
权限的PAT
(下游用户需要进行两个额外的配置操作,增加上手成本);