From 8a2dcf6cf87b8277bd5a5b75822f4f60f6214de5 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Thu, 7 Mar 2024 13:19:29 +0100 Subject: [PATCH] Add option `list-merged-pr --table` (#774) Paint a table like one of ~~our French Guys~~ those Amtoine created for the overview of the hall of fame --- make_release/release-note/list-merged-prs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/make_release/release-note/list-merged-prs b/make_release/release-note/list-merged-prs index 5d2010b8..cf27e4a2 100755 --- a/make_release/release-note/list-merged-prs +++ b/make_release/release-note/list-merged-prs @@ -16,6 +16,7 @@ export def main [ --label: string # the label to filter the PRs by, e.g. `good-first-issue` --pretty # pretty-print for the MarkDown release not --no-author # do not group the contributions by author + --table # make an Antoine table ] { mut query_parts = [] @@ -55,6 +56,16 @@ export def main [ | update author { get login } ) + if $table { + return ( + $prs + | update author {md-link $"@($in)" $"https://github.com/($in)"} + | insert PR {|pr| md-link $"#($pr.number)" $pr.url} + | select author title PR + | to md + ) + } + if $pretty { if $no_author { return (