Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request runatlantis#650 from runatlantis/log-whitelist
Browse files Browse the repository at this point in the history
Log repo name if does not match whitelist
  • Loading branch information
lkysow authored May 24, 2019
2 parents 3785b7b + 98274cd commit 354551d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/events_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 354551d

Please sign in to comment.