tix the release note PR opening script (#611)

* remove `str replace --string`

related to nushell/nushell#10064

* remove the return

lol otherwise of course it won't work xD
This commit is contained in:
Antoine Stevan 2023-09-20 18:58:59 +02:00 committed by GitHub
parent 2cbd0de3d4
commit e64355b2ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ def main [
let branch = $"release-notes-($version)"
let blog_path = (
$repo | path join "blog" $"($date | format date "%Y-%m-%d")-nushell_($version | str replace --all --string '.' '_').md"
$repo | path join "blog" $"($date | format date "%Y-%m-%d")-nushell_($version | str replace --all '.' '_').md"
)
let title = $"Release notes for `($version)`"
@ -63,7 +63,7 @@ by opening PRs against the `release-notes-($version)` branch.
| path dirname
| path join "template.md"
| open
| str replace --all --string "{{VERSION}}" $version
| str replace --all "{{VERSION}}" $version
log info $"branch: ($branch)"
log info $"blog: ($blog_path | str replace $repo "" | path split | skip 1 | path join)"
@ -82,8 +82,6 @@ by opening PRs against the `release-notes-($version)` branch.
},
}
return
log info "setting up nushell.github.io repo"
git clone git@github.com:nushell/nushell.github.io $repo --origin nushell --branch main --single-branch