Skip to content

Commit aba100e

Browse files
committed
Make sure we update bug template when we release
1 parent ff9ad30 commit aba100e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Shell/Release.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ function CSH-Release {
2525

2626
Set-Content -Encoding UTF8 -Path $changeLogPath -Value ($changeLog + $changeLogValue)
2727

28+
$bugFilePath = $PSScriptRoot + "/../.github/ISSUE_TEMPLATE/bug.yml"
29+
$replacementText = "- [ ] I'm using the latest version of CSharpier ``$versionNumber``"
30+
(Get-Content $bugFilePath) -replace '- \[ \] I''m using the latest version of CSharpier `\d+(\.\d+)*`', $replacementText |
31+
Set-Content -Encoding UTF8 $bugFilePath
32+
2833
foreach ($file in Get-ChildItem ($PSScriptRoot + "/../docs") -Filter "*.md")
2934
{
3035
Copy-Item $file.FullName ($PSScriptRoot + "/../Src/Website/docs/" + $file.Name)

0 commit comments

Comments
 (0)