Skip to content

Commit 21366ec

Browse files
committed
fix: simplify patch-release-notes-overview
1 parent e98aab8 commit 21366ec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = async ({token, owner, repo, sha, tag, test = false} = {}) => {
6060

6161
const patchedBase64ReleaseNotes = Buffer.from(patchedReleaseNotes).toString('base64')
6262

63-
const {patchedBase64ReleaseNotesOverview, releaseNotesOverviewSha, releaseNotesOverviewHtml} = await patchReleaseNotesOverview({token, owner, repo, sha, tag, test, release})
63+
const {patchedBase64ReleaseNotesOverview, releaseNotesOverviewSha, releaseNotesOverviewHtml} = await patchReleaseNotesOverview({token, repo, tag, release})
6464

6565
if (test) return `TEST MODE: do not commit changes`
6666

patch-release-notes-overview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const getReleaseNote = require('./lib/get-release-note')
33
const targetOwner = 'livingdocsIO'
44
const targetRepo = 'documentation'
55

6-
module.exports = async ({token, owner, repo, sha, tag, test = false, release} = {}) => {
6+
module.exports = async ({token, repo, tag, release} = {}) => {
77
const path = `data/releases.json`
88
const releaseNote = await getReleaseNote({owner: targetOwner, repo: targetRepo, path, token})
99

@@ -13,11 +13,11 @@ module.exports = async ({token, owner, repo, sha, tag, test = false, release} =
1313

1414
if (repo === 'livingdocs-editor') {
1515
patchedContent[release.branchName].editorVersion = tag
16-
console.log(`\n\nUpdate Release Notes overview: Set '${release.branchName}.editorVersion' to ${tag}\n\n`)
16+
console.log(`\n\nUpdate Release Notes overview: Set '${release.branchName}#editorVersion' to ${tag}\n\n`)
1717
}
1818
if (repo === 'livingdocs-server') {
1919
patchedContent[release.branchName].serverVersion = tag
20-
console.log(`\n\nUpdate Release Notes overview: Set '${release.branchName}.serverVersion' to ${tag}\n\n`)
20+
console.log(`\n\nUpdate Release Notes overview: Set '${release.branchName}#serverVersion' to ${tag}\n\n`)
2121
}
2222

2323
const patchedBase64ReleaseNotesOverview = Buffer.from(JSON.stringify(patchedContent, null, 4)).toString('base64')

0 commit comments

Comments
 (0)