1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Fix TWiN script (#944)

At some point this broke, just committing a fix I've had on my personal
computer for a while.

```
# This week in Nushell #261


## Nushell

Error: nu:🐚:name_not_found

  × Name not found
    ╭─[/home/reilly/github/nu_scripts/make_release/this_week_in_nu_weekly.nu:36:48]
 35 │
 36 │             for user in ($site_json | group-by user_login | transpose user prs) {
    ·                                                ─────┬────
    ·                                                     ╰── did you mean 'user.login'?
 37 │                 let user_name = $user.user
    ╰────
```
This commit is contained in:
Reilly Wood 2024-08-30 03:47:45 -07:00 committed by GitHub
parent 430951c3b1
commit 614b073310
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ def query-week-span [] {
if not ($site_json | all { |it| $it | is-empty }) {
print $"(char nl)## ($repo.site)(char nl)"
for user in ($site_json | group-by user_login | transpose user prs) {
for user in ($site_json | group-by "user.login" | transpose user prs) {
let user_name = $user.user
let pr_count = ($user.prs | length)