🐛 fix(vscode): 完成列缺 PR 合并时间时按工单关闭时间排序
没走 PR 流程、直接关掉的工单没有 merged_at,原先一律排在所有已合并 工单之后,在上百张卡的完成列里等于永远看不见。loader 把 Gitea issue 的 closed_at 带进 Issue,完成列排序缺 prMergedAt 时回退到它,让两类 工单落在同一条时间线上。
This commit is contained in:
1 parent
0b85b9868b
commit
73f2c3ec66
6 files changed
+73
-4
No files matched your search
@@ -29,6 +29,8 @@ export interface GiteaIssue {
|
||||
comments: number
|
||||
created_at: string
|
||||
updated_at: string
|
||||
/** 工单关闭时间(ISO 8601);未关闭为 null。完成列缺 PR 合并时间时用它排序。 */
|
||||
closed_at?: string | null
|
||||
body: string
|
||||
html_url: string
|
||||
user: { login: string, avatar_url?: string } | null
|
||||
|
||||
@@ -435,6 +435,7 @@ async function buildIssue(opts: {
|
||||
...(pr ? { pr } : {}),
|
||||
...(prMerged !== undefined ? { prMerged } : {}),
|
||||
...(mergedAt ? { prMergedAt: mergedAt } : {}),
|
||||
...(issue.closed_at ? { closedAt: issue.closed_at } : {}),
|
||||
...(branch ? { branch } : {}),
|
||||
...(worktreePath ? { worktreePath } : {}),
|
||||
...(worktreeExists !== undefined ? { worktreeExists } : {}),
|
||||
|
||||
@@ -76,6 +76,8 @@ export interface Issue {
|
||||
prMerged?: boolean
|
||||
/** PR 合并时间(ISO 8601,来自 PR API 的 merged_at)。完成列按它降序排序,未合并为 undefined。合并时持久化进 state JSON;完成工单加载时不再实时拉 PR,直接读持久化值(缺失则按工单号回退排序)。 */
|
||||
prMergedAt?: string
|
||||
/** 工单关闭时间(ISO 8601,来自 Gitea issue 的 closed_at)。完成列缺 prMergedAt 时按它排序,直接关掉、没走 PR 的工单才不会沉底。 */
|
||||
closedAt?: string
|
||||
/** Branch name created for implementation, e.g. `feature/<hash>`. */
|
||||
branch?: string
|
||||
/** Workspace-relative path to the implementation worktree. */
|
||||
|
||||
Reference in new issue
Block a user