Skip to content

Commit f73e65d

Browse files
authored
chore: fix build url code for remark-github@12 (#8592)
1 parent c4ba7f4 commit f73e65d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/create-node-pr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ const getPrBody = async ({ releases, closePrs }) => {
9393

9494
const { remark } = await import('remark')
9595
const { default: remarkGfm } = await import('remark-gfm')
96-
const { default: remarkGithub } = await import('remark-github')
96+
const { default: remarkGithub, defaultBuildUrl } = await import('remark-github')
9797

9898
return remark()
9999
.use(remarkGfm)
100100
.use(remarkGithub, {
101101
repository: 'npm/cli',
102102
// dont link mentions, but anything else make the link an explicit referance to npm/cli
103-
buildUrl: (values, buildUrl) => values.type === 'mention' ? false : buildUrl(values),
103+
buildUrl: (values) => values.type === 'mention' ? false : defaultBuildUrl(values),
104104
})
105105
.process(prBody)
106106
.then(v => String(v))

0 commit comments

Comments
 (0)