Skip to content

Commit f8573e8

Browse files
committed
fix(license): replace placeholders
1 parent 42c3e32 commit f8573e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ async function main(): Promise<void> {
136136
if (licenseName !== 'UNLICENSED') {
137137
console.log('📄 Adding LICENSE')
138138
const license = (await githubClient.get(`licenses/${licenseName}`)).body
139-
await writeFile('LICENSE', license.body)
139+
const licenseText = license.body
140+
.replace(/\[year\]/g, new Date().getFullYear())
141+
.replace(/\[fullname\]/g, 'Sourcegraph')
142+
await writeFile('LICENSE', licenseText)
140143
}
141144

142145
const { hasTests } = await prompt<{ hasTests: boolean }>({

0 commit comments

Comments
 (0)