Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/litee/gh/pr/marshal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ local function marshal_thread_node(use_original)
line = node.thread["originalLine"]
end
local root_comment = node["children"][1]["comment"]
if root_comment["originalCommit"] ~= vim.NIL then
if root_comment["originalCommit"] ~= nil and root_comment["originalCommit"]["oid"] ~= nil then
detail = string.sub(root_comment["originalCommit"]["oid"], 1, 8)
detail = "@ " .. detail
end
Expand All @@ -73,7 +73,7 @@ local function marshal_thread_node(use_original)
line = node.thread["line"]
end
local root_comment = node["children"][1]["comment"]
if root_comment["originalCommit"] ~= vim.NIL then
if root_comment["originalCommit"] ~= nil and root_comment["originalCommit"]["oid"] ~= nil then
detail = string.sub(root_comment["originalCommit"]["oid"], 1, 8)
detail = "@ " .. detail
end
Expand Down