From 7d843e5c7b75c8b1856460fae12cb10110aff362 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Sat, 11 Nov 2023 15:36:38 +0100 Subject: [PATCH] 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 | 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` 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. --- make_release/release-note/list-merged-prs | 2 +- make_release/release-note/template.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/make_release/release-note/list-merged-prs b/make_release/release-note/list-merged-prs index 9ef2bbd1..e49149e5 100755 --- a/make_release/release-note/list-merged-prs +++ b/make_release/release-note/list-merged-prs @@ -9,7 +9,7 @@ def md-link [ } # list all merged PRs since last release -def main [ +export def main [ repo: string # the name of the repo, e.g. `nushell/nushell` date?: datetime # the date of the last release (default to 4 weeks ago, excluded) --label: string # the label to filter the PRs by, e.g. `good-first-issue` diff --git a/make_release/release-note/template.md b/make_release/release-note/template.md index d170fdc6..75e2daa5 100644 --- a/make_release/release-note/template.md +++ b/make_release/release-note/template.md @@ -44,6 +44,24 @@ As part of this release, we also publish a set of optional plugins you can insta ### Deprecated commands ### Removed commands + + # Breaking changes