Skip to content

Commit 258eaa9

Browse files
committed
Fix bin/dev bump-version to properly linkify changelog headers
[skip ci]
1 parent a31bad7 commit 258eaa9

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77

8-
## 0.17.0 - 2022-01-29
8+
## [0.17.0] - 2022-01-29
99
- Added customization option `tsc-dyn-get-from`, which is a list of sources to get the dynamic module `tsc-dyn` from. Its default value is `(:github :compilation)`.
1010
- Made `tree-sitter-hl`'s region-fontification function fall back to the underlying non-tree-sitter function when called outside of `tree-sitter-hl-mode`. This fixes an issue where `jupyter-repl-mode`'s [input cells are not highlighted](https://github.com/nnicandro/emacs-jupyter/issues/363).
1111
- Updated `tsc-dyn-get` to download platform-specific binaries (mainly for Apple Silicon).
@@ -144,7 +144,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
144144
## [0.1.0] - 2020-01-27
145145
Initial release
146146

147-
[Unreleased]: https://github.com/emacs-tree-sitter/elisp-tree-sitter/compare/0.16.1...HEAD
147+
[Unreleased]: https://github.com/emacs-tree-sitter/elisp-tree-sitter/compare/0.17.0...HEAD
148+
[0.17.0]: https://github.com/emacs-tree-sitter/elisp-tree-sitter/compare/0.16.1...0.17.0
148149
[0.16.1]: https://github.com/emacs-tree-sitter/elisp-tree-sitter/compare/0.16.0...0.16.1
149150
[0.16.0]: https://github.com/emacs-tree-sitter/elisp-tree-sitter/compare/0.15.2...0.16.0
150151
[0.15.2]: https://github.com/emacs-tree-sitter/elisp-tree-sitter/compare/0.15.1...0.15.2

bin/dev

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,15 @@
9191
(-modify-regexp "Version: *\\(.*\\)" next)
9292
(-modify-regexp "Package-Requires:.*\(tsc *\"\\(.*\\)\"" next))
9393
(-with-file-edits CHANGELOG.md
94-
(search-forward "Unreleased")
94+
(search-forward "[Unreleased]")
9595
(end-of-line)
96-
(insert (format "\n\n## %s - %s" next date))) ))
96+
(insert (format "\n\n## [%s] - %s" next date))
97+
(search-forward "[Unreleased]")
98+
(search-forward current)
99+
(replace-match next)
100+
(end-of-line)
101+
(insert (format "\n[%s]: https://github.com/emacs-tree-sitter/elisp-tree-sitter/compare/%s...%s"
102+
next current next)))))
97103

98104
(defun cmd:current-version ()
99105
"Print the current version."

0 commit comments

Comments
 (0)