A place to share Nushell scripts with each other
Go to file
Antoine Stevan 7d843e5c7b
make list-merged-prs a module and add template example (#636)
to help writing the release notes, i think being able to list all the
PRs between the last two releases and format them directly to a raw
table is really nice.
this PR
- `export`s the `main` command from `list-merged-prs`
- adds an example to the `template.md` file of the release notes

the example:
```nushell
use ./make_release/release-note/list-merged-prs

list-merged-prs nushell/nushell <last-release-date>
    | where author != "app/dependabot"
    | sort-by mergedAt
    | update url {|it| $"[#($it.number)]\(($it.url)\)" }
    | update author { $"[@($in)]\(https://github.com/($in)\)" }
    | select author title url
    | rename -c {url: pr}
    | to md --pretty
```
will dump all the PRs in a `table<author: string, title: string, pr:
string>` in `md` format:
- `author` is a mardown link to the GitHub page of each author
- `title` is the title of the PRs
- `pr` is a markdown link to the GitHub page of each PR

this pipeline will omit the contributions from @app/dependabot.
2023-11-11 15:36:38 +01:00
aliases Add git aliases (#660) 2023-11-09 06:29:41 -06:00
assets move assets so they're more accessible (#445) 2023-04-12 08:29:47 -05:00
before_v0.60 move assets so they're more accessible (#445) 2023-04-12 08:29:47 -05:00
benchmarks fix removed commands (#645) 2023-10-19 19:35:23 +02:00
custom-completions cwdhist: alternative to zoxide (#656) 2023-11-05 06:55:02 -06:00
custom-menus move the extra menus of Nushell into custom-menus/extra/ (#550) 2023-07-21 10:44:27 +02:00
example-config export env is not in nushell (#529) 2023-06-17 07:48:08 -05:00
make_release make list-merged-prs a module and add template example (#636) 2023-11-11 15:36:38 +01:00
modules shift_alt_e to switch cwdhist history mode (#658) 2023-11-05 21:16:17 -06:00
nu-hooks make hooks a module (#650) 2023-10-23 19:51:49 +03:00
sourced fix removed commands (#645) 2023-10-19 19:35:23 +02:00
stdlib-candidate null-stream.nu as stdlib-candidate (#649) 2023-10-23 17:57:50 +02:00
themes update the nu-themes readme (#652) 2023-10-29 07:55:13 -05:00
.gitattributes Add Nushell Language detect for linguist (#532) 2023-06-21 11:36:01 +03:00
.gitignore update gitignore (#270) 2022-07-30 08:04:58 -05:00
LICENSE Initial commit 2021-01-23 07:33:45 +13:00
package.nuon make hooks a module (#650) 2023-10-23 19:51:49 +03:00
README.md Update README.md: typo (#545) 2023-07-05 10:39:08 -05:00

Nushell Scripts

This is a place to share Nushell scripts with each other. If you'd like to share your scripts, fork this repository, and create a PR that adds it to the repo.

Sections

Running Scripts

You can run nushell scripts in a few different ways.

  1. You can type nu <script name>.
  2. From with nushell, you can type source <script name> and if the script is just a bunch of commands it will run the script. If the script is a custom command it will load those custom commands into your current scope so you can run them like any other command.