Skip to content

Commit

Permalink
Make git commit -m more specific to just the .nimble file to avoid
Browse files Browse the repository at this point in the history
sweeping up unintended changes in the commit.  Could maybe make the
old behavior optional if anyone asks for it..

Also, consistently use "Error" rather than "error".
  • Loading branch information
c-blake committed Jul 10, 2023
1 parent a14be2e commit 3b0609a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nrel.nim
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ proc nrel(vsn="", bump=patch, upDeps=false, msg="", stage=push, title="",
let msg = if msg.len != 0: msg else: "Bump versions pre-release"
let newV = nimbleUp(vsn, bump, upDeps, dryRun)
if stage == nimble: quit()
run "git commit -am \'" & msg & "\'", "error committing version bump",5,dryRun
run "git commit -m \'" & msg & "\' " & nimblePath(),
"Error committing version bump",5,dryRun
if stage == commit: quit()
run "git tag " & newV, "error adding " & newV & " tag", 6, dryRun
run "git tag " & newV, "Error adding " & newV & " tag", 6, dryRun
if stage == tag: quit()
run "git push; git push --tags", "error pushing to main GH branch", 7, dryRun
run "git push; git push --tags", "Error pushing to main GH branch", 7, dryRun
if stage == push: quit()
run "gh release create \'"&newV&"\' -t '"&title&"' -F '"&rNotes&"'",
"Error running gh release create; Manually do it on github", 8, dryRun
Expand Down

0 comments on commit 3b0609a

Please sign in to comment.