Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small changelog improvements #2442

Merged
merged 5 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## [Unreleased](https://github.com/rerun-io/rerun/compare/latest...HEAD)

## [0.6.0](https://github.com/rerun-io/rerun/compare/v0.5.0...v0.6.0) - 3D in 2D and SDK batching
## [0.6.0](https://github.com/rerun-io/rerun/compare/v0.5.1...v0.6.0) - 3D in 2D and SDK batching - 2023-05-26

### Overview & Highlights

Expand Down Expand Up @@ -216,7 +216,8 @@ This Release fixes a few small bugs on top of the v0.5.0 release.
* Don't use console.error [#1984](https://github.com/rerun-io/rerun/pull/1984)
* Fix failure to save files when split table contains no data [#2007](https://github.com/rerun-io/rerun/pull/2007)

## [0.5.0](https://github.com/rerun-io/rerun/compare/v0.4.0...v0.5.0) - Jupyter MVP, GPU-based picking & colormapping, new datastore!

## [0.5.0](https://github.com/rerun-io/rerun/compare/v0.4.0...v0.5.0) - Jupyter MVP, GPU-based picking & colormapping, new datastore! - 2023-04-20

### Overview & Highlights

Expand Down Expand Up @@ -387,10 +388,10 @@ This new release adds MVP support for embedding Rerun in Jupyter notebooks, and
- `just rs-run-all` [b14087b40bd805c95f030a4c7d3fb7a0482e13f4](https://github.com/rerun-io/rerun/commit/b14087b40bd805c95f030a4c7d3fb7a0482e13f4)
- `just py-run-all-{native|web|rrd}` [#1927](https://github.com/rerun-io/rerun/pull/1927)

## [0.4.0](https://github.com/rerun-io/rerun/compare/v0.3.1...v0.4.0) - Outlines, web viewer and performance improvements

https://user-images.githubusercontent.com/1220815/228241887-03b311e2-80e9-4541-9281-6d334a15ab04.mp4
## [0.4.0](https://github.com/rerun-io/rerun/compare/v0.3.1...v0.4.0) - Outlines, web viewer and performance improvements - 2023-03-28

https://user-images.githubusercontent.com/1220815/228241887-03b311e2-80e9-4541-9281-6d334a15ab04.mp4

### Overview & Highlights
* Add support for mesh vertex colors [#1671](https://github.com/rerun-io/rerun/pull/1671)
Expand Down Expand Up @@ -562,12 +563,12 @@ We now host an experimental and unpolished web-viewer at <https://app.rerun.io/>
- Lint fixes [9901e7c6735356b1970ddabc926bc5378d82e057](https://github.com/rerun-io/rerun/commit/9901e7c6735356b1970ddabc926bc5378d82e057)


## [0.3.1](https://github.com/rerun-io/rerun/compare/v0.3.0...v0.3.1) - Remove potentially sensitive analytics
## [0.3.1](https://github.com/rerun-io/rerun/compare/v0.3.0...v0.3.1) - Remove potentially sensitive analytics - 2023-03-13

Remove potentially sensitive analytics, including path to rerun source code on panics, and rerun branch name when building from source [#1563](https://github.com/rerun-io/rerun/pull/1563)


## [0.3.0](https://github.com/rerun-io/rerun/compare/v0.2.0...v0.3.0)
## [0.3.0](https://github.com/rerun-io/rerun/compare/v0.2.0...v0.3.0) - 2023-03-07
### Overview & Highlights

After a successful launch a couple of weeks ago, we're back with our second release!
Expand Down Expand Up @@ -726,5 +727,5 @@ Meanwhile, we did a bunch of improvements to our manual. If you had trouble runn

[Full Changelog](https://github.com/rerun-io/rerun/compare/v0.2.0...v0.3.0)

## 0.2.0
## 0.2.0 - 2023-02-14
First public release!
21 changes: 21 additions & 0 deletions scripts/generate_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
COMMIT_RANGE = "latest..HEAD"
INCLUDE_LABELS = False # It adds quite a bit of visual noise
OFFICIAL_RERUN_DEVS = [
"abey79",
"emilk",
"jleibs",
"jprochazk",
Expand Down Expand Up @@ -109,6 +110,9 @@ def print_section(title: str, items: list[str]) -> None:


def main() -> None:
# Because how we branch, we sometimes get duplicate commits in the changelog unless we check for it
previous_changelog = open("CHANGELOG.md").read()

repo = Repo(".")
commits = list(repo.iter_commits(COMMIT_RANGE))
commits.reverse() # Most recent last
Expand All @@ -123,6 +127,8 @@ def main() -> None:
)
)

chronological = []

# Sections:
analytics = []
enhancement = []
Expand All @@ -149,13 +155,24 @@ def main() -> None:
if pr_number is None:
# Someone committed straight to main:
summary = f"{title} [{hexsha}](https://github.com/{OWNER}/{REPO}/commit/{hexsha})"
if summary in previous_changelog:
print(f"Ignoring dup: {summary}")
continue

chronological.append(summary)
misc.append(summary)
else:
title = pr_info.pr_title if pr_info else title # We prefer the PR title if available
labels = pr_info.labels if pr_info else []

summary = f"{title} [#{pr_number}](https://github.com/{OWNER}/{REPO}/pull/{pr_number})"

if summary in previous_changelog:
print(f"Ignoring dup: {summary}")
continue

chronological.append(f"{summary} {hexsha}")

if INCLUDE_LABELS and 0 < len(labels):
summary += f" ({', '.join(labels)})"

Expand Down Expand Up @@ -210,6 +227,7 @@ def main() -> None:
misc.append(summary)

print()

# Most interesting first:
print_section("🐍 Python SDK", python)
print_section("🦀 Rust SDK", rust)
Expand All @@ -228,6 +246,9 @@ def main() -> None:
print_section("🗣 Refactors", refactor)
print_section("🤷‍♂️ Other", misc)

print()
print_section("Chronological changes (don't include these)", chronological)


if __name__ == "__main__":
main()