mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00: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
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue