@@ -8,7 +8,7 @@ type GithubAppInstallation struct {
gorm.Model
// Can belong to either a user or an organization
- AccountID string `json:"account_id"`
+ AccountID string `json:"account_id" gorm:"unique"`
// Installation ID (used for authentication)
InstallationID string `json:"installation_id"`
@@ -377,3 +377,7 @@ func (app *App) HandleListProjectOAuthIntegrations(w http.ResponseWriter, r *htt
return
}
+
+func (app *App) HandleGithubAppEvent(w http.ResponseWriter, r *http.Request) {
+}
@@ -176,6 +176,12 @@ func New(a *api.App) *chi.Mux {
),
)
+ r.Method(
+ "GET",
+ "/integrations/github-app/webhook",
+ requestlog.NewHandler(a.HandleGithubAppEvent, l),
+ )
// /api/templates routes
r.Method(
"GET",