Skip to content

Commit 9cd46a2

Browse files
authored
expose the github app creation wizard (#1768)
* expose the github app creation wizard * make it behind a flag
1 parent 8350fec commit 9cd46a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

next/main.go

+5
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ func main() {
8484
r.GET("/github/callback_fe", middleware.WebhookAuth(), diggerController.GithubAppCallbackPage)
8585
r.POST("/github-app-webhook", diggerController.GithubAppWebHook)
8686

87+
if val, exists := os.LookupEnv("DIGGER_EXPOSE_GITHUB_APP_WIZARD"); exists && val == "true" {
88+
r.GET("/github/setup", controllers.GithubAppSetup)
89+
r.GET("/github/exchange-code", diggerController.GithubSetupExchangeCode)
90+
}
91+
8792
r.POST("/_internal/process_runs_queue", middleware.WebhookAuth(), diggerController.ProcessRunQueueItems)
8893
// process all drift crontabs
8994
r.POST("/_internal/process_drift", middleware.WebhookAuth(), diggerController.TriggerCronForMatchingProjects)

0 commit comments

Comments
 (0)