We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c3e32 commit f8573e8Copy full SHA for f8573e8
src/cli.ts
@@ -136,7 +136,10 @@ async function main(): Promise<void> {
136
if (licenseName !== 'UNLICENSED') {
137
console.log('📄 Adding LICENSE')
138
const license = (await githubClient.get(`licenses/${licenseName}`)).body
139
- await writeFile('LICENSE', license.body)
+ const licenseText = license.body
140
+ .replace(/\[year\]/g, new Date().getFullYear())
141
+ .replace(/\[fullname\]/g, 'Sourcegraph')
142
+ await writeFile('LICENSE', licenseText)
143
}
144
145
const { hasTests } = await prompt<{ hasTests: boolean }>({
0 commit comments