Skip to content

Commit

Permalink
Feat: Add reviewers to summary metadata (#121)
Browse files Browse the repository at this point in the history
This commit adds reviewers to the metadata panel of the Summary popup. Thank you Jakub Bortlik!
  • Loading branch information
jakubbortlik authored Nov 21, 2023
1 parent c4a3229 commit 711ed28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ require("gitlab").setup({
exit = "<Esc>",
perform_action = "<leader>s", -- Once in normal mode, does action (like saving comment or editing description, etc)
perform_linewise_action = "<leader>l", -- Once in normal mode, does the linewise action (see logs for this job, etc)
},
},
discussion_tree = { -- The discussion tree that holds all comments
blacklist = {}, -- List of usernames to remove from tree (bots, CI, etc)
jump_to_file = "o", -- Jump to comment location in file
Expand All @@ -146,6 +146,7 @@ require("gitlab").setup({
"draft",
"conflicts",
"assignees",
"reviewers",
"branch",
"pipeline",
},
Expand Down
1 change: 1 addition & 0 deletions lua/gitlab/actions/summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ M.build_info_lines = function()
draft = { title = "Draft", content = (info.draft and "Yes" or "No") },
conflicts = { title = "Merge Conflicts", content = (info.has_conflicts and "Yes" or "No") },
assignees = { title = "Assignees", content = u.make_readable_list(info.assignees, "name") },
reviewers = { title = "Reviewers", content = u.make_readable_list(info.reviewers, "name") },
branch = { title = "Branch", content = info.source_branch },
pipeline = {
title = "Pipeline Status:",
Expand Down
1 change: 1 addition & 0 deletions lua/gitlab/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ M.settings = {
"draft",
"conflicts",
"assignees",
"reviewers",
"branch",
"pipeline",
},
Expand Down

0 comments on commit 711ed28

Please sign in to comment.