diff options
author | 2022-08-10 15:30:34 -0700 | |
---|---|---|
committer | 2022-08-10 15:30:34 -0700 | |
commit | 6ca32d800d8dd9fa76e0f05dfa5e4b2526c488f5 (patch) | |
tree | abfd2093abeb89a5994365999bff2f41c82960c9 | |
parent | 218ab7f967a7acddeec6276031d49ba266c29615 (diff) | |
download | bun-6ca32d800d8dd9fa76e0f05dfa5e4b2526c488f5.tar.gz bun-6ca32d800d8dd9fa76e0f05dfa5e4b2526c488f5.tar.zst bun-6ca32d800d8dd9fa76e0f05dfa5e4b2526c488f5.zip |
[bun upgrade] Add changelog URL
Fixes https://github.com/oven-sh/bun/issues/1019
-rw-r--r-- | src/cli/upgrade_command.zig | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/cli/upgrade_command.zig b/src/cli/upgrade_command.zig index fd0a91d6b..0d7db71dd 100644 --- a/src/cli/upgrade_command.zig +++ b/src/cli/upgrade_command.zig @@ -694,14 +694,16 @@ pub const UpgradeCommand = struct { \\ \\ https://github.com/oven-sh/bun/issues \\ - \\What's new: + \\Changelog: \\ - \\ <cyan>https://github.com/oven-sh/bun/releases/tag/{s}<r> + \\ https://github.com/oven-sh/bun/compare/{s}...main \\ , - .{version.tag}, + .{Environment.git_sha}, ); } else { + const bun_v = "bun-v" ++ Global.package_json_version; + Output.prettyErrorln( \\<r> Upgraded. \\ @@ -715,8 +717,12 @@ pub const UpgradeCommand = struct { \\ \\ <cyan>https://github.com/oven-sh/bun/releases/tag/{s}<r> \\ + \\Changelog: + \\ + \\ https://github.com/oven-sh/bun/compare/{s}...{s} + \\ , - .{ version_name, version.tag }, + .{ version_name, version.tag, bun_v, version.tag }, ); } |