From 08f06c434546fc1de8eaf04011591d2d31b874b2 Mon Sep 17 00:00:00 2001 From: Tom Nicholas Date: Thu, 18 May 2023 18:17:06 -0400 Subject: [PATCH] Ensure all tags have been fetched --- HOW_TO_RELEASE.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/HOW_TO_RELEASE.md b/HOW_TO_RELEASE.md index 3bbd551415b..661673b7423 100644 --- a/HOW_TO_RELEASE.md +++ b/HOW_TO_RELEASE.md @@ -18,14 +18,19 @@ upstream https://github.com/pydata/xarray (push) git switch main git pull upstream main ``` - 2. Add a list of contributors with: + 2. Add a list of contributors. + First fetch all previous release tags so we can see the version number of the last release was: + ```sh + git fetch upstream --tags + ``` + This will return a list of all the contributors since the last release: ```sh git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | perl -pe 's/\n/$1, /' ``` - This will return the number of contributors: + This will return the total number of contributors: ```sh git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | wc -l - ``` + ``` 3. Write a release summary: ~50 words describing the high level features. This will be used in the release emails, tweets, GitHub release notes, etc. 4. Look over whats-new.rst and the docs. Make sure "What's New" is complete