Skip to content

Commit 1db0c36

Browse files
committed
Fix failing pandoc command during release
1 parent a95ea96 commit 1db0c36

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/RELEASE_DRAFT_FILTER.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ return {
1010
release_count = release_count + 1
1111
end
1212
if elem.level < 3 or release_count > 1 then
13-
return pandoc.Null()
13+
return {}
1414
end
1515
return elem
1616
end,
1717
Block = function (elem)
1818
if release_count > 1 then
19-
return pandoc.Null()
19+
return {}
2020
end
2121
return elem
2222
end,

.github/workflows/ci/helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ EOF
179179
run pandoc --from=gfm --to=gfm \
180180
--lua-filter=.github/RELEASE_DRAFT_FILTER.lua \
181181
--template=.github/RELEASE_DRAFT_TEMPLATE.md \
182-
--base-header-level=2 --wrap=none \
182+
--shift-heading-level-by=2 --wrap=none \
183183
--variable="version:$RELEASE_VERSION" \
184184
--output=notes.md \
185185
"$notes_body" || die

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# Plover: build artifacts.
1818
news_draft.md
19+
notes.md
1920

2021
# Pytest.
2122
/.pytest_cache/

0 commit comments

Comments
 (0)