Skip to content

Commit 314a82a

Browse files
committed
Destructure correctly
1 parent dd1651a commit 314a82a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/actions/changelog/lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/changelog/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function main() {
1919
github.context.payload.pull_request &&
2020
github.context.payload.pull_request.title
2121
const { changelog, sha } = await getChangelog()
22-
const updatedChangelog = { draft: [title, ...changelog.draft], ...changelog }
22+
const updatedChangelog = { ...changelog, draft: [title, ...changelog.draft] }
2323
await commitChangelog(updatedChangelog, sha)
2424
}
2525

0 commit comments

Comments
 (0)