Skip to content

Commit

Permalink
expose the github app creation wizard (#1768)
Browse files Browse the repository at this point in the history
* expose the github app creation wizard

* make it behind a flag
  • Loading branch information
motatoes authored Oct 21, 2024
1 parent 8350fec commit 9cd46a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions next/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ func main() {
r.GET("/github/callback_fe", middleware.WebhookAuth(), diggerController.GithubAppCallbackPage)
r.POST("/github-app-webhook", diggerController.GithubAppWebHook)

if val, exists := os.LookupEnv("DIGGER_EXPOSE_GITHUB_APP_WIZARD"); exists && val == "true" {
r.GET("/github/setup", controllers.GithubAppSetup)
r.GET("/github/exchange-code", diggerController.GithubSetupExchangeCode)
}

r.POST("/_internal/process_runs_queue", middleware.WebhookAuth(), diggerController.ProcessRunQueueItems)
// process all drift crontabs
r.POST("/_internal/process_drift", middleware.WebhookAuth(), diggerController.TriggerCronForMatchingProjects)
Expand Down

0 comments on commit 9cd46a2

Please sign in to comment.