mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 08:50:31 +03:00
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:
parent
74f23a4980
commit
8a2dcf6cf8
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user