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
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?;
}
// P4 : liens GitHub (Check Run / Deployment) par déploiement DevForge.
for sql in [
"ALTER TABLE deployments ADD COLUMN check_run_id BIGINT",
"ALTER TABLE deployments ADD COLUMN github_deployment_id BIGINT",
"ALTER TABLE deployments ADD COLUMN github_head_sha TEXT",
] {
let _ = 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",
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/dev_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ pub(crate) async fn run_dev_deploy(
is_static: project.is_static != 0,
github_token: deploy_tok.token,
github_token_ephemeral: deploy_tok.ephemeral,
pin_sha: None,
env_file,
proxy_labels: Some(labels),
gpu_nvidia: project.gpu_nvidia != 0,
Expand Down
1 change: 1 addition & 0 deletions apps/server/src/github_app_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ pub fn rerequest_as_push(event: &str, payload: &Value) -> Option<Value> {
"repository": payload.get("repository")?,
"installation": payload.get("installation"),
"head_commit": { "id": sha, "message": "Relance demandée depuis GitHub" },
"devforge_pin_sha": sha,
}))
}

Expand Down
Loading
Loading