Skip to content

Commit 4ba8c17

Browse files
authored
Merge pull request #449 from bborn/task/1283-show-pr-details-in-closed-tasks-list
Show PR details in closed tasks list
2 parents fc4ea97 + 20b00e6 commit 4ba8c17

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/ui/app.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4287,6 +4287,11 @@ func (m *AppModel) refreshAllPRs() tea.Cmd {
42874287
// Create messages for tasks in this repo
42884288
for _, task := range tasks {
42894289
info := prsByBranch[task.BranchName]
4290+
// If batch fetch didn't include this branch (common for closed tasks
4291+
// with older closed PRs), fall back to individual fetch
4292+
if info == nil && task.BranchName != "" {
4293+
info = prCache.GetPRForBranch(repoDir, task.BranchName)
4294+
}
42904295
results = append(results, prInfoMsg{taskID: task.ID, info: info})
42914296
}
42924297
}

0 commit comments

Comments
 (0)