diff --git a/controllers/hook.go b/controllers/hook.go index 1554bb206026f525061b89d6d6044dccb3eca3db..2fb29c4ef6524db04f2c0d4400a8ed3770ed1e9d 100644 --- a/controllers/hook.go +++ b/controllers/hook.go @@ -134,8 +134,9 @@ func (c *HookEventControllers) handleNoteDate() { } hookPwd := beego.AppConfig.String("hook::hookpwd") hookNote.Password = util.TrimString(hookNote.Password) + hookPwd = util.TrimString(hookPwd) if hookNote.Action == "comment" && hookNote.NoteableType == "Issue" && hookNote.Password == hookPwd { - //logs.Info(string(c.Ctx.Input.RequestBody)) + logs.Info(string(c.Ctx.Input.RequestBody)) //handle issue comment go handleIssueComment(hookNote) }