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
This commit is contained in:
Stefan Holderbach 2024-03-07 13:19:29 +01:00 committed by GitHub
parent 74f23a4980
commit 8a2dcf6cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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