Skip to content

Commit

Permalink
fix: changed upcoming release format
Browse files Browse the repository at this point in the history
  • Loading branch information
DaRaFF committed Jul 24, 2022
1 parent 838df49 commit 52a32bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
console.log('release-notes-patch -> v1.5.3 (introduce categorize section)')
console.log('release-notes-patch -> v1.5.4 (changed upcoming release format (PRs to categorize))')
const argv = require('yargs')
.demandOption(['token', 'owner', 'repo', 'sha', 'tag'])
.help(false)
Expand Down
2 changes: 1 addition & 1 deletion fixtures/upcoming-release-note-after.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Release notes for release-2021-09
---

## PRs to Categorize
* :new: fix: fixed an editor bug [livingdocs-editor #99 v35.24.3](https://github.com/livingdocsIO/livingdocs-editor/pull/99)
* [fix: fixed an editor bug](https://github.com/livingdocsIO/livingdocs-editor/pull/99)

**Attention:** If you skipped one or more releases, please also check the release-notes of the skipped ones.

Expand Down
4 changes: 2 additions & 2 deletions lib/add-patch-to-upcoming-release-note.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = ({repo, releaseNote, tag, pull}) => {
for (const [line, originalLine] of originalReleaseNotes.entries()) {
if (isCategorisationSection(originalReleaseNotes, line)) {
// add new patch to the patches section
// * v50.1.9 this is my pr title [livingdocs-server #8122](https://github.com/octocat/Hello-World/pull/1347) :gift:
const patchLine = `* :new: ${pull.title} [${repo} #${pull.number} ${tag}](${pull.htmlUrl})`
// * [this is my pr title](https://github.com/octocat/Hello-World/pull/1347) :gift:
const patchLine = `* [${pull.title}](${pull.htmlUrl})`
console.log(`\n\nAdd line to upcoming release:\n\n${patchLine}\n\n`)
parsedReleaseNotes.push(patchLine)
}
Expand Down

0 comments on commit 52a32bf

Please sign in to comment.