ci: add autocorrect - #27
Merged
Merged
Conversation
taoky
requested changes
Sep 9, 2025
| 本项目是 Debian 第三方多媒体软件源。 | ||
|
|
||
| 该项目以前的名字为 Debian Multimedia,现改名为 Deb Multimedia。注意这不是 Debian 官方项目,是为 deb-multimedia.org 的镜像,与 Debian 官方的 Multimedia 小组的区别见 https://wiki.debian.org/DebianMultimedia/FAQ 。 | ||
| 该项目以前的名字为 Debian Multimedia,现改名为 Deb Multimedia。注意这不是 Debian 官方项目,是为 deb-multimedia.org 的镜像,与 Debian 官方的 Multimedia 小组的区别见 https://wiki.debian.org/DebianMultimedia/FAQ。 |
Contributor
Author
There was a problem hiding this comment.
我写文档的时候也发现经常有这种问题,好像 autocorrect 可以设置规则避开?
Member
There was a problem hiding this comment.
我一般会用 < 和 > 包裹起来。不过 mirrorz-help 用的 mdx 不支持这个语法,得写全。
Contributor
Author
There was a problem hiding this comment.
在 .autocorrectrc 设置了 no-space-fullwidth: 0 以暂时规避这一问题。
Member
There was a problem hiding this comment.
我觉得不应该做规避。参考的做法是:
该项目以前的名字为 Debian Multimedia,现改名为 Deb Multimedia。注意这不是 Debian 官方项目,是为 deb-multimedia.org 的镜像,与 Debian 官方的 Multimedia 小组的区别见 <https://wiki.debian.org/DebianMultimedia/FAQ>。
Contributor
Author
There was a problem hiding this comment.
也可以,需要改动所有 URL 了 🫤
或者只改动全角句号结尾的若干1处?
|
|
||
| - name: AutoCorrect check | ||
| run: | | ||
| curl -sSL https://git.io/JcGER | sudo bash |
Contributor
Author
There was a problem hiding this comment.
这里可以用 single-user $HOME/.local/bin 规避 sudo mv <file> /usr/local/bin?这样就不需要提权了
Contributor
Author
There was a problem hiding this comment.
改成了用 yarn 安装 autocorrect,上游没有在 crates.io 发布二进制,因此不能用 cargo 安装。
另一个方案是用 single-user Nix 管理,考虑到用量过少没有优势就放弃了。
不对,single-user Nix 比 yarn 快,依赖还少(
definfo
force-pushed
the
autocorrect
branch
4 times, most recently
from
September 10, 2025 16:01
e46dcd4 to
b9456f4
Compare
Signed-off-by: definfo <hjsdbb1@gmail.com>
Signed-off-by: definfo <hjsdbb1@gmail.com>
definfo
force-pushed
the
autocorrect
branch
from
September 11, 2025 09:47
b9456f4 to
9c7ea69
Compare
taoky
approved these changes
Sep 11, 2025
Member
|
相关的修改也和 mirrorz-help 同步一下吧。 |
definfo
added a commit
to definfo/mirrorz-help
that referenced
this pull request
Sep 13, 2025
port of github.com/mirrorz-org/mirrorz-docs/pull/27 Signed-off-by: definfo <hjsdbb1@gmail.com>
definfo
added a commit
to definfo/mirrorz-help
that referenced
this pull request
Sep 13, 2025
port of github.com/mirrorz-org/mirrorz-docs/pull/27 Signed-off-by: definfo <hjsdbb1@gmail.com>
definfo
added a commit
to definfo/mirrorz-help
that referenced
this pull request
Sep 13, 2025
port of mirrorz-org/mirrorz-docs#27 Signed-off-by: definfo <hjsdbb1@gmail.com>
taoky
pushed a commit
to mirrorz-org/mirrorz-help
that referenced
this pull request
Sep 13, 2025
port of mirrorz-org/mirrorz-docs#27 Signed-off-by: definfo <hjsdbb1@gmail.com>
github-actions Bot
pushed a commit
to mirrorz-org/mirrorz-help
that referenced
this pull request
Sep 13, 2025
[7c0af61] chore(ci): fetch autocorrect using single-user Nix port of mirrorz-org/mirrorz-docs#27 Signed-off-by: definfo <hjsdbb1@gmail.com>
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.
Copy from https://github.com/mirrorz-org/mirrorz-help/blob/master/.github/workflows/autocorrect.yml
However I am not sure why autocorrect is fetched using script from a short link, and even requires
sudo bash?IMO this can be replaced by a manual fetch command for release tarball.