Skip to content

Commit

Permalink
add release:docs to release notes (redwoodjs#5260)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Saadi <[email protected]>
  • Loading branch information
thedavidprice and jtoar authored Apr 22, 2022
1 parent 0ed8d5e commit d403503
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tasks/release/generateReleaseNotes.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* eslint-env node, es2021 */
import template from 'lodash.template'
import fs from 'node:fs'
import url from 'node:url'

import template from 'lodash.template'

import octokit from './octokit.mjs'

/**
Expand Down Expand Up @@ -185,6 +186,7 @@ function sortPRs(prs) {
const features = []
const fixed = []
const chore = []
const docs = []
const packageDependencies = []
const manual = []

Expand Down Expand Up @@ -217,6 +219,11 @@ function sortPRs(prs) {
continue
}

if (labels.includes('release:docs')) {
chore.push(`- ${formatPR(pr)}`)
continue
}

/**
* Those that can't be sorted.
*/
Expand All @@ -227,6 +234,7 @@ function sortPRs(prs) {
features: features.join('\n'),
fixed: fixed.join('\n'),
chore: chore.join('\n'),
docs: docs.join('\n'),
packageDependencies: packageDependencies.join('\n'),
manual: manual.join('\n'),
}
Expand Down Expand Up @@ -264,6 +272,10 @@ const interpolate = template(
'',
'${chore}',
'',
'## Docs',
'',
'${docs}',
'',
'### Package Dependencies',
'',
'<details>',
Expand Down

0 comments on commit d403503

Please sign in to comment.