Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion make_release/this_week_in_nu_weekly.nu
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def generate-twin [

for pr in $user.prs {
$twin_text += $"
- [($pr.title) \(#($pr.number)]\)\(($pr.url)\)
- [($pr.title) \(#($pr.number)\)]\(($pr.url)\)

" | str dedent
}
Expand Down
13 changes: 11 additions & 2 deletions make_release/twin-tweaks.nu
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
def "twin format" [filename] {
def "twin format" [filename?] {
use std/clip
use std-rfc/str

let input = $in

let twin_content = (
match $filename {
null => $input
_ => { open --raw $filename }
}
)

{
Authorization: $'Bearer (kv get -u OPENROUTER_API_KEY)'
}
Expand All @@ -11,7 +20,7 @@ def "twin format" [filename] {
Rewrite the following auto-generated changelog so it's more natural. For example, change things like 'rgwood created [Bump dependencies...' to 'rgwood [bumped dependencies...'. Keep the inline links. Make sure to keep ALL original URLs! When returning the text, do not include any explaination of the change or the surrounding backticks around the result:

```
(open --raw $filename)
($twin_content)
```
"
| str unindent
Expand Down