Skip to content

Commit e0741cf

Browse files
committed
v1.4.1
1 parent a7d4e17 commit e0741cf

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGE LOG
22

3+
## v1.4.0
4+
1. release
5+
36
## v1.3.0
47
1. add verbose
58

config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
var (
13-
Version = "v1.3.0"
13+
Version = "v1.4.1"
1414
Author = "barry"
1515
1616
Name = "github-webhook"

router/router.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ func pong(w http.ResponseWriter, r *http.Request) {
3939
func webHookLog(conf config.Config) http.HandlerFunc {
4040
return internal.Handler(conf.Secret, log, func(event string, payload *internal.GitHubRepo, req *http.Request) error {
4141
// Log webhook
42-
log.Println("Received:", event, " for:", payload.Name)
42+
log.Println("Event:", event, ",for:", payload.Name)
4343
// You'll probably want to do some real processing
4444
log.Println("Can clone repo at:", payload.CloneURL)
45-
log.Printf("Commit INFO Name:%s\n, Email:%s\n, Branch:%s\n, CommitID:%s\n, At:%s\n",
45+
log.Printf("Commit information:\nName:%s\nEmail:%s\nBranch:%s\nCommitID:%s\nTime:%s\n",
4646
payload.CommitName, payload.CommitEmail, payload.BranchName, payload.CommitID, payload.CommitAt)
4747

4848
// All is good (return an error to fail)

0 commit comments

Comments
 (0)