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:
Harrison (Harry) Cramer
2024-01-13 10:45:17 -05:00
committed by GitHub
parent 50e06ceff6
commit ed3a90cf00
3 changed files with 15 additions and 12 deletions

View File

@@ -187,6 +187,7 @@ you call this function with no values the defaults will be used:
"assignees",
"reviewers",
"branch",
"target_branch",
"pipeline",
"labels",
},

View File

@@ -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()

View File

@@ -88,8 +88,9 @@ M.settings = {
"conflicts",
"assignees",
"reviewers",
"branch",
"pipeline",
"branch",
"target_branch",
"labels",
},
},