mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57: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`
|
--label: string # the label to filter the PRs by, e.g. `good-first-issue`
|
||||||
--pretty # pretty-print for the MarkDown release not
|
--pretty # pretty-print for the MarkDown release not
|
||||||
--no-author # do not group the contributions by author
|
--no-author # do not group the contributions by author
|
||||||
|
--table # make an Antoine table
|
||||||
] {
|
] {
|
||||||
mut query_parts = []
|
mut query_parts = []
|
||||||
|
|
||||||
|
@ -55,6 +56,16 @@ export def main [
|
||||||
| update author { get login }
|
| 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 $pretty {
|
||||||
if $no_author {
|
if $no_author {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue