Feat: Add target branch to details panel (#160)
This is a PATCH release, it adds the target branch to the details panel in the summary view.
This commit is contained in:
committed by
GitHub
parent
50e06ceff6
commit
ed3a90cf00
@@ -177,17 +177,18 @@ you call this function with no values the defaults will be used:
|
||||
info = { -- Show additional fields in the summary view
|
||||
enabled = true,
|
||||
horizontal = false, -- Display metadata to the left of the summary rather than underneath
|
||||
fields = { -- The fields listed here will be displayed, in whatever order you choose
|
||||
"author",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
"merge_status",
|
||||
"draft",
|
||||
"conflicts",
|
||||
"assignees",
|
||||
"reviewers",
|
||||
"branch",
|
||||
"pipeline",
|
||||
fields = { -- The fields listed here will be displayed, in whatever order you choose
|
||||
"author",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
"merge_status",
|
||||
"draft",
|
||||
"conflicts",
|
||||
"assignees",
|
||||
"reviewers",
|
||||
"branch",
|
||||
"target_branch",
|
||||
"pipeline",
|
||||
"labels",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -131,6 +131,7 @@ M.build_info_lines = function()
|
||||
reviewers = { title = "Reviewers", content = u.make_readable_list(info.reviewers, "name") },
|
||||
branch = { title = "Branch", content = info.source_branch },
|
||||
labels = { title = "Labels", content = u.make_comma_separated_readable(info.labels) },
|
||||
target_branch = { title = "Target Branch", content = state.INFO.target_branch },
|
||||
pipeline = {
|
||||
title = "Pipeline Status",
|
||||
content = function()
|
||||
|
||||
@@ -88,8 +88,9 @@ M.settings = {
|
||||
"conflicts",
|
||||
"assignees",
|
||||
"reviewers",
|
||||
"branch",
|
||||
"pipeline",
|
||||
"branch",
|
||||
"target_branch",
|
||||
"labels",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user