Skip to content

Commit

Permalink
Update GH status context and add trailing / to URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Nov 19, 2019
1 parent 83b4d95 commit 1f6f995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deployconfig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,13 @@ function post_github_status(type::S, deploydocs_repo::S, sha::S, subfolder=nothi
push!(cmd.exec, "-H", "Authorization: token $(auth)")
push!(cmd.exec, "-H", "User-Agent: Documenter.jl")
push!(cmd.exec, "-H", "Content-Type: application/json")
json = Dict{String,Any}("context" => "continuous-integration/documenter", "state"=>type)
json = Dict{String,Any}("context" => "documenter/deploy", "state"=>type)
if type == "pending"
json["description"] = "Documentation build in progress"
elseif type == "success"
json["description"] = "Documentation build succeeded"
if subfolder !== nothing
json["target_url"] = "https://$(owner).github.io/$(repo)/$(subfolder)"
json["target_url"] = "https://$(owner).github.io/$(repo)/$(subfolder)/"
end
elseif type == "error"
json["description"] = "Documentation build errored"
Expand Down

0 comments on commit 1f6f995

Please sign in to comment.