Destructure correctly
This commit is contained in:
parent
dd1651af21
commit
314a82a7a8
2 changed files with 2 additions and 2 deletions
2
.github/actions/changelog/lib/index.js
vendored
2
.github/actions/changelog/lib/index.js
vendored
|
|
@ -3811,7 +3811,7 @@ async function main() {
|
|||
github.context.payload.pull_request &&
|
||||
github.context.payload.pull_request.title;
|
||||
const { changelog, sha } = await getChangelog();
|
||||
const updatedChangelog = { draft: [title, ...changelog.draft], ...changelog };
|
||||
const updatedChangelog = { ...changelog, draft: [title, ...changelog.draft] };
|
||||
await commitChangelog(updatedChangelog, sha);
|
||||
}
|
||||
async function getChangelog() {
|
||||
|
|
|
|||
2
.github/actions/changelog/src/index.ts
vendored
2
.github/actions/changelog/src/index.ts
vendored
|
|
@ -19,7 +19,7 @@ async function main() {
|
|||
github.context.payload.pull_request &&
|
||||
github.context.payload.pull_request.title
|
||||
const { changelog, sha } = await getChangelog()
|
||||
const updatedChangelog = { draft: [title, ...changelog.draft], ...changelog }
|
||||
const updatedChangelog = { ...changelog, draft: [title, ...changelog.draft] }
|
||||
await commitChangelog(updatedChangelog, sha)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue