Log repo name if does not match whitelist

Should help with folks debugging, especially for BB Server.
This commit is contained in:
Luke Kysow
2019-05-24 09:14:40 -04:00
parent 3785b7bad4
commit 98274cd9bb

View File

@@ -278,7 +278,9 @@ func (e *EventsController) handlePullRequestEvent(w http.ResponseWriter, baseRep
if eventType == models.OpenedPullEvent {
e.commentNotWhitelisted(baseRepo, pull.Num)
}
e.respond(w, logging.Debug, http.StatusForbidden, "Ignoring pull request event from non-whitelisted repo")
e.respond(w, logging.Debug, http.StatusForbidden,
"Ignoring pull request event from non-whitelisted repo \"%s/%s\"",
baseRepo.VCSHost.Hostname, baseRepo.FullName)
return
}