mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00: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
1 changed files with 2 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue