Skip to content

Commit

Permalink
Merge pull request #191 from cserteGT3/cst-gitmessage
Browse files Browse the repository at this point in the history
Add commitmsg kwarg for publish()
  • Loading branch information
tlienart authored Jul 11, 2019
2 parents 9e49323 + 4b2e960 commit 54deb3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/manager/post_processing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ In other scenarios you should probably do this manually.
* `prerender=true`: prerender javascript before pushing see [`optimize`](@ref)
* `minify=true`: minify output before pushing see [`optimize`](@ref)
* `nopass=false`: set this to true if you have already run `optimize` manually.
* `message="jd-update"`: add commit message.
"""
function publish(; prerender::Bool=true, minify::Bool=true, nopass::Bool=false,
prepath::String="")::Nothing
prepath::String="", message::String="jd-update")::Nothing
succ = true
if !isempty(prepath) || !nopass
succ = optimize(prerender=prerender, minify=minify, sig=true, prepath=prepath)
Expand All @@ -88,7 +89,7 @@ function publish(; prerender::Bool=true, minify::Bool=true, nopass::Bool=false,
print(pubmsg)
try
run(`git add -A `)
run(`git commit -m "jd-update" --quiet`)
run(`git commit -m "$message" --quiet`)
run(`git push --quiet`)
print_final(pubmsg, start)
catch e
Expand Down

0 comments on commit 54deb3c

Please sign in to comment.