Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commitmsg kwarg for publish() #191

Merged
merged 2 commits into from
Jul 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/manager/post_processing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ In other scenarios you should probably do this manually.
* `nopass=false`: set this to true if you have already run `optimize` manually.
cserteGT3 marked this conversation as resolved.
Show resolved Hide resolved
"""
function publish(; prerender::Bool=true, minify::Bool=true, nopass::Bool=false,
prepath::String="")::Nothing
prepath::String="", commitmsg::String="jd-update")::Nothing
cserteGT3 marked this conversation as resolved.
Show resolved Hide resolved
succ = true
if !isempty(prepath) || !nopass
succ = optimize(prerender=prerender, minify=minify, sig=true, prepath=prepath)
Expand All @@ -85,7 +85,7 @@ function publish(; prerender::Bool=true, minify::Bool=true, nopass::Bool=false,
print(rpad("→ Pushing updates with git...", 35))
try
run(`git add -A `)
run(`git commit -m "jd-update" --quiet`)
run(`git commit -m "$commitmsg" --quiet`)
run(`git push --quiet`)
time_it_took(start)
catch e
Expand Down