Skip to content

Commit 08f06c4

Browse files
authored
Ensure all tags have been fetched
1 parent e8af057 commit 08f06c4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

HOW_TO_RELEASE.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,19 @@ upstream https://github.com/pydata/xarray (push)
1818
git switch main
1919
git pull upstream main
2020
```
21-
2. Add a list of contributors with:
21+
2. Add a list of contributors.
22+
First fetch all previous release tags so we can see the version number of the last release was:
23+
```sh
24+
git fetch upstream --tags
25+
```
26+
This will return a list of all the contributors since the last release:
2227
```sh
2328
git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | perl -pe 's/\n/$1, /'
2429
```
25-
This will return the number of contributors:
30+
This will return the total number of contributors:
2631
```sh
2732
git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | wc -l
28-
```
33+
```
2934
3. Write a release summary: ~50 words describing the high level features. This
3035
will be used in the release emails, tweets, GitHub release notes, etc.
3136
4. Look over whats-new.rst and the docs. Make sure "What's New" is complete

0 commit comments

Comments
 (0)