mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: correct markdown link syntax for commit hashes in changelog generation
The links were generated incorrectly
(cherry picked from commit 98bfd139ee)
This commit is contained in:
parent
0aa5c7b815
commit
901d66dbb7
2 changed files with 6 additions and 8 deletions
|
|
@ -1,15 +1,15 @@
|
|||
## 21.0.1 (2025-12-17)
|
||||
|
||||
- fix(language-service): Prevent language service from crashing on suggestion diagnostic errors (5047be4bc1)[https://github.com/angular/angular/commit/5047be4bc1c6f6016263703c743f8033f669f0ee]
|
||||
- fix(language-service): avoid interpolation highlighting inside @let (e0694df3ec)[https://github.com/angular/angular/commit/e0694df3eccae3d31a4ea537dffe1db1368ef34a]
|
||||
- fix(vscode-extension): Show warning if multiple versions of Angular are detected in workspace (a41b0ce025)[https://github.com/angular/angular/commit/a41b0ce02528c27e4804bcd39a61c932503bae61]
|
||||
- fix(language-service): Prevent language service from crashing on suggestion diagnostic errors ([5047be4bc1](https://github.com/angular/angular/commit/5047be4bc1c6f6016263703c743f8033f669f0ee))
|
||||
- fix(language-service): avoid interpolation highlighting inside @let ([e0694df3ec](https://github.com/angular/angular/commit/e0694df3eccae3d31a4ea537dffe1db1368ef34a))
|
||||
- fix(vscode-extension): Show warning if multiple versions of Angular are detected in workspace ([a41b0ce025](https://github.com/angular/angular/commit/a41b0ce02528c27e4804bcd39a61c932503bae61))
|
||||
|
||||
<!-- CHANGELOG SPLIT MARKER -->
|
||||
|
||||
## 21.0.0 (2025-11-18)
|
||||
|
||||
- fix(language-service): address potential memory leak during project creation (89095946cf)[https://github.com/angular/angular/commit/89095946cff051c5613b8f54ec722d08cd47c709]
|
||||
- fix(language-server): fix directory renaming on Windows (3f7111a9c3)[https://github.com/angular/angular/commit/3f7111a9c38c6fd00af705a3045f2909f47b505b]
|
||||
- fix(language-service): address potential memory leak during project creation ([89095946cf](https://github.com/angular/angular/commit/89095946cff051c5613b8f54ec722d08cd47c709))
|
||||
- fix(language-server): fix directory renaming on Windows ([3f7111a9c3](https://github.com/angular/angular/commit/3f7111a9c38c6fd00af705a3045f2909f47b505b))
|
||||
|
||||
# 20.3.3
|
||||
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ async function generateChangelog(fromVersion: string, toVersion: string): Promis
|
|||
let {stdout: commits} = await exec(
|
||||
`git log --left-only FETCH_HEAD...${getTagName(fromVersion)} -E ` +
|
||||
'--grep="^(feat|fix|perf)\\((vscode-extension|language-server|language-service)\\):" ' +
|
||||
'--format="format:- %s (%h)[https://github.com/angular/angular/commit/%H]"',
|
||||
'--format="format:- %s ([%h](https://github.com/angular/angular/commit/%H))"',
|
||||
);
|
||||
|
||||
commits = commits.trim();
|
||||
|
|
@ -386,8 +386,6 @@ async function createGithubRelease(version: string, changelog: string): Promise<
|
|||
body: changelog
|
||||
// Remove the version header from the changelog as it is already in the release title.
|
||||
.replace(/## .*? \(\d{4}-\d{2}-\d{2}\)/, '')
|
||||
// Remove the commit links from the changelog as they are not needed in the release body.
|
||||
.replace(/\[https:\/\/github\.com\/angular\/angular\/commit\/[a-f0-9]+\]/g, '')
|
||||
.trim(),
|
||||
make_latest: 'false',
|
||||
prerelease: false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue