✨ feat(vscode): 设置和看板按仓库类型区分 GitHub 与 Gitea,GitHub 显示 gh 登录状态,文案去 Gitea 化

This commit is contained in:
cruldra committed 2026-10-19 08:25:10 +11:00
1 parent ac3c882672
commit ae06c8e5d1
42 files changed
+443 -195

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
/**
* Detects the workspace's forge repo coordinates (host / owner / repo) from `git remote get-url origin`.
*
* Supports both HTTPS forms (`https://gitea.x.cn/owner/repo.git`) and SSH
* forms (`git@gitea.x.cn:owner/repo.git`, with or without a leading
* Supports both HTTPS forms (`https://git.example.com/owner/repo.git`) and SSH
* forms (`git@git.example.com:owner/repo.git`, with or without a leading
* `ssh://`). The pure URL parser is exported separately so it's unit-testable
* without spawning a child process.
*/
+1 -1
View File
@@ -166,7 +166,7 @@ export async function ensureWorktreeFromRemote(opts: WorktreeOpts): Promise<stri
return worktreePath
}
/** 从 origin 拉 PR 的最新提交:Gitea 给每个 PR 留了 `refs/pull/<n>/head`,PR 的分支本机没有也拉得到。 */
/** 从 origin 拉 PR 的最新提交:Gitea 和 GitHub 都给每个 PR 留了 `refs/pull/<n>/head`,PR 的分支本机没有也拉得到。 */
export async function fetchPullRequestHead(workspaceRoot: string, pr: number): Promise<void> {
await runGit(workspaceRoot, ['fetch', 'origin', `refs/pull/${pr}/head`], `拉取 PR #${pr}`)
}
+1 -1
View File
@@ -14,7 +14,7 @@
* - WORKTREE_PATH — absolute path of the worktree
* - WORKSPACE_ROOT — absolute path of the main workspace
* - BRANCH — feature branch name
* - ISSUE_NUMBER — gitea issue number (decimal string)
* - ISSUE_NUMBER — forge issue number (decimal string)
* - MAIN_BRANCH — settings.devBranch (default 'main')
*/