Skip to content

Commit

Permalink
Merge dc8cdcc into 0c8d6a0
Browse files Browse the repository at this point in the history
  • Loading branch information
gdm85 committed Nov 1, 2020
2 parents 0c8d6a0 + dc8cdcc commit c0564c3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion goveralls.go
Expand Up @@ -252,6 +252,13 @@ func processParallelFinish(jobID, token string) error {
params.Set("payload[build_num]", jobID)
params.Set("payload[status]", "done")
res, err := http.PostForm(*endpoint+"/webhook", params)
if *debug {
if token != "" {
params.Set("repo_token", "*******")
}
log.Printf("Posted webhook data: %q", params.Encode())
}

if err != nil {
return err
}
Expand Down Expand Up @@ -292,7 +299,7 @@ func process() error {
flag.Parse()
if len(flag.Args()) > 0 {
flag.Usage()
os.Exit(1)
os.Exit(2)
}

//
Expand Down Expand Up @@ -448,6 +455,11 @@ func process() error {
}

if *debug {
j := j
if j.RepoToken != nil && *j.RepoToken != "" {
s := "*******"
j.RepoToken = &s
}
b, err := json.MarshalIndent(j, "", " ")
if err != nil {
return err
Expand Down

0 comments on commit c0564c3

Please sign in to comment.