This commit is contained in:
Adam Majer 2024-07-09 10:22:17 +02:00
parent a82ae14c34
commit 300c411942
3 changed files with 6 additions and 12 deletions

View File

@ -1,8 +0,0 @@
#!/bin/sh
while true; do
clear
go test
inotifywait -q -e modify -e create -e delete -r .
done

View File

@ -11,8 +11,8 @@ import (
func processRepositoryAction(h *common.RequestHandler) error { func processRepositoryAction(h *common.RequestHandler) error {
action := h.Request.Data.(common.RepositoryAction) action := h.Request.Data.(common.RepositoryAction)
if action.Repository.Name == "_ObsPrj" { if action.Repository.Name == common.DefaultGitPrj {
h.Log("repository event %s for _ObsPrj. Ignoring", action.Action) h.Log("repository event %s for %s. Ignoring", common.DefaultGitPrj, action.Action)
return nil return nil
} }
@ -42,8 +42,8 @@ func processRepositoryAction(h *common.RequestHandler) error {
func processPushAction(h *common.RequestHandler) error { func processPushAction(h *common.RequestHandler) error {
action := h.Request.Data.(common.PushRequest) action := h.Request.Data.(common.PushRequest)
if action.Repository.Name == "_ObsPrj" { if action.Repository.Name == common.DefaultGitPrj {
h.Log("push to _ObsPrj -- ignoring") h.Log("push to %s -- ignoring", common.DefaultGitPrj)
return nil return nil
} }

View File

@ -1,2 +1,4 @@
package main package main
// TODO, like documentation :-)