Merge pull request #34 from rowbawts/dev

Fix printing of port to console from placeholder and change some form…
This commit is contained in:
Sebastian Cabrera 2023-08-28 23:41:31 -04:00 committed by GitHub
commit ae4d05ea78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,13 +27,20 @@ func initGitHubClient() {
if privateKey != "" {
log.Println("Private key loaded from env!")
} else {
log.Println("Private key not found!")
log.Println("No private key specified in env!")
os.Exit(0)
}
if port != "" {
log.Println("Port configured from env!")
} else {
log.Println("No port specified in env!")
os.Exit(0)
}
}
func listenForWebhook() {
log.Printf("Listening on :%d......\n", port)
log.Printf("Listening on :%s......\n", port)
http.HandleFunc("/", webHandle)
http.HandleFunc("/webhook", webhookHandler)