Skip to content

Commit 540bddc

Browse files
committed
chore: 更新justfile
1 parent ff739b4 commit 540bddc

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

justfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,13 @@ check:
5656

5757
# ===== 版本管理 =====
5858

59-
# 版本发布(更新版本号、更新 lock 文件)
59+
# 版本发布(更新版本号、更新 lock 文件、自动修正标签
6060
bump:
6161
uv run cz bump
6262
uv lock
63+
git add uv.lock
64+
git commit --amend --no-edit --no-verify
65+
$version = (uv run cz version --project).Trim(); git tag -f "v$version"
6366

6467
# 生成 changelog
6568
changelog:
@@ -74,3 +77,14 @@ hooks:
7477
# 更新 prek hooks
7578
update:
7679
uv run prek auto-update
80+
81+
# 从 dev 向 main 创建 PR
82+
pr:
83+
gh pr create --base main --fill
84+
gh pr view --web
85+
86+
# PR 合并后强制同步到 main
87+
sync:
88+
git fetch origin
89+
git reset --hard origin/main
90+
git push origin --force-with-lease

0 commit comments

Comments
 (0)