Skip to content

Commit

Permalink
Add option list-merged-pr --table (nushell#774)
Browse files Browse the repository at this point in the history
Paint a table like one of ~~our French Guys~~ those Amtoine created for
the overview of the hall of fame
  • Loading branch information
sholderbach committed Mar 7, 2024
1 parent 74f23a4 commit 8a2dcf6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions make_release/release-note/list-merged-prs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 8a2dcf6

Please sign in to comment.