Skip to content

Commit

Permalink
Merge pull request #471 from jarviliam/feat-resolved-by
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro Muñoz authored Dec 28, 2023
2 parents 8787835 + 725bd11 commit 08d02e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/octo/gh/graphql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ M.start_review_mutation = [[
diffSide
startDiffSide
isResolved
resolvedBy { login }
isCollapsed
isOutdated
comments(first:100) {
Expand Down Expand Up @@ -1414,6 +1415,7 @@ query {
startLine
originalStartLine
isResolved
resolvedBy { login }
isCollapsed
isOutdated
comments(first:100) {
Expand Down
7 changes: 7 additions & 0 deletions lua/octo/ui/writers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,12 @@ function M.write_review_thread_header(bufnr, opts, line)
-- )
--vim.list_extend(header_vt, resolved_bubble)
vim.list_extend(header_vt, { { conf.resolved_icon, "OctoGreen" } })
if opts.resolvedBy then
vim.list_extend(
header_vt,
{ { " [Resolved by: ", "OctoSymbol" }, { opts.resolvedBy.login, "OctoDetailsLabel" }, { "] ", "OctoSymbol" } }
)
end
end

M.write_block(bufnr, { "" })
Expand Down Expand Up @@ -1312,6 +1318,7 @@ function M.write_threads(bufnr, threads)
end_line = end_line,
isOutdated = thread.isOutdated,
isResolved = thread.isResolved,
resolvedBy = thread.resolvedBy,
commit = comment.originalCommit.abbreviatedOid,
})

Expand Down

0 comments on commit 08d02e1

Please sign in to comment.