From ffa60beb75cfe4263f3988afd566586d4053eacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Tue, 29 Sep 2026 12:08:26 +0200 Subject: [PATCH] Set `approval_tentative` to `FALSE` in `unapprove_pull_request_if_sha_changed` --- ...e430a887809bf4c7d429ac242b8a3f21c91415499.json | 15 --------------- ...021c7adfce292e67cbafe1abd6faa3b4365216689.json | 15 +++++++++++++++ src/database/operations.rs | 1 + 3 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 .sqlx/query-323b623291bbf288bc65c6ce430a887809bf4c7d429ac242b8a3f21c91415499.json create mode 100644 .sqlx/query-5788c4fb15f29cb1a0a5635021c7adfce292e67cbafe1abd6faa3b4365216689.json diff --git a/.sqlx/query-323b623291bbf288bc65c6ce430a887809bf4c7d429ac242b8a3f21c91415499.json b/.sqlx/query-323b623291bbf288bc65c6ce430a887809bf4c7d429ac242b8a3f21c91415499.json deleted file mode 100644 index 69549429..00000000 --- a/.sqlx/query-323b623291bbf288bc65c6ce430a887809bf4c7d429ac242b8a3f21c91415499.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n UPDATE pull_request\n SET approved_by = NULL,\n approved_sha = NULL,\n auto_build_id = NULL\n WHERE\n id = $1 AND\n (approved_by IS NULL OR approved_sha != $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int4", - "Text" - ] - }, - "nullable": [] - }, - "hash": "323b623291bbf288bc65c6ce430a887809bf4c7d429ac242b8a3f21c91415499" -} diff --git a/.sqlx/query-5788c4fb15f29cb1a0a5635021c7adfce292e67cbafe1abd6faa3b4365216689.json b/.sqlx/query-5788c4fb15f29cb1a0a5635021c7adfce292e67cbafe1abd6faa3b4365216689.json new file mode 100644 index 00000000..ea4d9b85 --- /dev/null +++ b/.sqlx/query-5788c4fb15f29cb1a0a5635021c7adfce292e67cbafe1abd6faa3b4365216689.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE pull_request\n SET approved_by = NULL,\n approved_sha = NULL,\n approval_tentative = FALSE,\n auto_build_id = NULL\n WHERE\n id = $1 AND\n (approved_by IS NULL OR approved_sha != $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Text" + ] + }, + "nullable": [] + }, + "hash": "5788c4fb15f29cb1a0a5635021c7adfce292e67cbafe1abd6faa3b4365216689" +} diff --git a/src/database/operations.rs b/src/database/operations.rs index 9f516fd6..15e19474 100644 --- a/src/database/operations.rs +++ b/src/database/operations.rs @@ -570,6 +570,7 @@ pub(crate) async fn unapprove_pull_request_if_sha_changed( UPDATE pull_request SET approved_by = NULL, approved_sha = NULL, + approval_tentative = FALSE, auto_build_id = NULL WHERE id = $1 AND