You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+27-2
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,10 @@ func main() {
16
16
tracer.Start(tracer.WithServiceName("webhooks"))
17
17
defertracer.Stop()
18
18
var (
19
-
portFlag=flag.String("port", "", `Use port [$PORT]`)
20
-
sendRequestToFlag=flag.String("send-request-to", "", `Send requests to this URL. If set, every request will be sent to this URL and not to bitrise.io. You can use this to debug/test, e.g. with http://requestb.in [$SEND_REQUEST_TO]`)
19
+
portFlag=flag.String("port", "", `Use port [$PORT]`)
20
+
sendRequestToFlag=flag.String("send-request-to", "", `Send requests to this URL. If set, every request will be sent to this URL and not to bitrise.io. You can use this to debug/test, e.g. with http://requestb.in [$SEND_REQUEST_TO]`)
21
+
logOnlyModeFlag=flag.Bool("log-only-mode", false, `Only print log messages without triggering builds [$LOG_ONLY_MODE]`)
22
+
buildTriggerURLFlag=flag.String("build-trigger-url", "", "URL to send build trigger requests to [$BUILD_TRIGGER_URL]")
21
23
)
22
24
flag.Parse()
23
25
@@ -37,6 +39,22 @@ func main() {
37
39
log.Printf(" (!) Send-Request-To specified, every request will be sent to: %s", config.SendRequestToURL)
0 commit comments