Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/server/src/auto_deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ pub(crate) async fn deploy_project(
}

async fn tick(state: &AppState, ensure_webhooks: bool) {
crate::github_app_events::purge_old_deliveries(&state.pool).await;
let projects = sqlx::query_as::<_, Project>(
r#"SELECT * FROM projects
WHERE auto_deploy != 0
Expand Down
8 changes: 8 additions & 0 deletions apps/server/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,14 @@ pub async fn migrate_github_app(pool: &PgPool) -> Result<(), sqlx::Error> {
] {
sqlx::query(sql).execute(pool).await?;
}
// P3 : observabilité des livraisons webhook app-level.
for sql in [
"ALTER TABLE github_webhook_deliveries ADD COLUMN duration_ms BIGINT",
"ALTER TABLE github_webhook_deliveries ADD COLUMN installation_id BIGINT",
"ALTER TABLE github_webhook_deliveries ADD COLUMN action TEXT",
] {
let _ = sqlx::query(sql).execute(pool).await;
}
// P1 : type du propriétaire (User/Organization) pour le lien de gestion GitHub.
let _ =
sqlx::query("ALTER TABLE github_app ADD COLUMN owner_type TEXT NOT NULL DEFAULT 'User'")
Expand Down
Loading
Loading