Skip to content

Commit 711ed28

Browse files
authored
Feat: Add reviewers to summary metadata (#121)
This commit adds reviewers to the metadata panel of the Summary popup. Thank you Jakub Bortlik!
1 parent c4a3229 commit 711ed28

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ require("gitlab").setup({
119119
exit = "<Esc>",
120120
perform_action = "<leader>s", -- Once in normal mode, does action (like saving comment or editing description, etc)
121121
perform_linewise_action = "<leader>l", -- Once in normal mode, does the linewise action (see logs for this job, etc)
122-
},
122+
},
123123
discussion_tree = { -- The discussion tree that holds all comments
124124
blacklist = {}, -- List of usernames to remove from tree (bots, CI, etc)
125125
jump_to_file = "o", -- Jump to comment location in file
@@ -146,6 +146,7 @@ require("gitlab").setup({
146146
"draft",
147147
"conflicts",
148148
"assignees",
149+
"reviewers",
149150
"branch",
150151
"pipeline",
151152
},

lua/gitlab/actions/summary.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ M.build_info_lines = function()
126126
draft = { title = "Draft", content = (info.draft and "Yes" or "No") },
127127
conflicts = { title = "Merge Conflicts", content = (info.has_conflicts and "Yes" or "No") },
128128
assignees = { title = "Assignees", content = u.make_readable_list(info.assignees, "name") },
129+
reviewers = { title = "Reviewers", content = u.make_readable_list(info.reviewers, "name") },
129130
branch = { title = "Branch", content = info.source_branch },
130131
pipeline = {
131132
title = "Pipeline Status:",

lua/gitlab/state.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ M.settings = {
4545
"draft",
4646
"conflicts",
4747
"assignees",
48+
"reviewers",
4849
"branch",
4950
"pipeline",
5051
},

0 commit comments

Comments
 (0)