Skip to content

Conversation

@NotTheDr01ds
Copy link
Contributor

@NotTheDr01ds NotTheDr01ds commented Aug 19, 2025

Pretty much (another) complete rewrite of the TWiN generation script. This one requires gh exclusively and does not use the REST API directly.

The big benefit in this rewrite is the automatic calculation of which PRs should be included. Each week, PRs from Friday through Thursday are included. The issue will usually, hopefully be generated on a Friday. However, previously the script could return duplicate PRs, especially when run later (like Saturday, or a few months later ...).

Issue numbers can now be generated, so if a week is missed, you can:

source this_week_in_nu_weekly.nu
generate-twin --issue-number 311

The output is now a Nushell string, rather than a print result which could not be easily captured.


This also included a new script twin-tweaks.nu which will pass a TWiN created via the above generate-twin command into DeepSeak (via OpenRouter.AI) and tweak the results to provide more natural wording to the PRs. For instance, a PR named:

  • Add foo

Will become:

This requires a valid account with openrouter.ai, which does need a few $ in it to work against. However, the actual tweak script only takes ~ $0.03 per run.

@NotTheDr01ds NotTheDr01ds merged commit 9895dad into nushell:main Aug 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant