Skip to content

fix(release): strip Docusaurus front matter from GitHub Release notes#473

Merged
haksungjang merged 1 commit into
mainfrom
fix/release-notes-frontmatter-strip
Jul 6, 2026
Merged

fix(release): strip Docusaurus front matter from GitHub Release notes#473
haksungjang merged 1 commit into
mainfrom
fix/release-notes-frontmatter-strip

Conversation

@haksungjang

Copy link
Copy Markdown
Contributor

배경

발행된 GitHub 릴리즈(v0.10.0–v0.13.0)의 본문 상단에 id:/title:/description:/sidebar_* 메타데이터가 거대한 제목으로 노출되는 문제가 있었다.

원인은 릴리즈 잡이 docs-site/docs/release-notes/<TAG>.md를 프론트매터째로 gh release create --notes-file에 넘긴 것. GitHub은 릴리즈 본문을 일반 마크다운으로 렌더링하며 YAML 프론트매터를 인식하지 못한다. 게다가 닫는 ---가 위 메타데이터 블록의 setext H2 밑줄로 해석되어 블록 전체가 하나의 제목으로 렌더링됐다.

변경

  • 큐레이션 릴리즈 노트를 --notes-file에 넘기기 전에 awk로 프론트매터(첫 ---부터 두 번째 ---까지)를 제거하고 그 뒤 본문만 사용하도록 수정.

이미 처리한 것

  • 발행된 릴리즈 5건(v0.13.0, v0.12.0, v0.11.1, v0.11.0, v0.10.0)의 본문은 gh release edit로 프론트매터를 제거해 반영 완료. 본 PR은 재발 방지(워크플로우)만 담는다.

The release job fed docs-site/docs/release-notes/<TAG>.md into
`gh release create --notes-file` verbatim. GitHub renders the body as
plain Markdown and does not recognise YAML front matter — worse, the
closing `---` is parsed as the setext-heading underline of the metadata
block above it, so the entire id:/title:/description:/sidebar_* block
rendered as one giant H2 (visible on v0.10.0–v0.13.0).

Strip the leading `--- ... ---` front matter with awk before publishing,
emitting only the body after the second delimiter.
@haksungjang haksungjang merged commit b9f1111 into main Jul 6, 2026
20 checks passed
@haksungjang haksungjang deleted the fix/release-notes-frontmatter-strip branch July 6, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant