mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 17:00:32 +03:00
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:
parent
2cbd0de3d4
commit
e64355b2ce
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user