Skip to content
forked from pydata/xarray

Commit

Permalink
Ensure all tags have been fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNicholas authored May 18, 2023
1 parent e8af057 commit 08f06c4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions HOW_TO_RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08f06c4

Please sign in to comment.