autogits/obs-staging-bot/main.go
2024-07-17 17:20:24 +02:00

44 lines
651 B
Go

package main
import (
"time"
"src.opensuse.org/autogits/common"
)
const (
GitAuthor = "GiteaBot - Obs Staging"
ObsBuildBot = "/obsbuild"
)
var GiteaToken string
var runId uint
func allocateRequestHandler() *common.RequestHandler {
runId++
return &common.RequestHandler {
Logger: &common.StdoutLogging{
Id: runId,
Date: time.Now(),
},
}
}
func main() {
var defs common.ListenDefinitions
defs.Url = ObsBuildBot
defs.GitAuthor = GitAuthor
common.RequireGiteaSecretToken()
common.RequireObsSecretToken()
go startProcessingObsMessages("rabbit.opensuse.org", "opensuse", "opensuse")
stuck := make(chan int)
<-stuck
}