mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-29 00:07:30 +00:00
* feat: run the git sync pull request diff check from auto-pull polling Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: retry failed pr check claims and never overwrite a newer claim Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: retry pr check claims whose check never started and start checks detached Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: re-run the pr diff check on reopen and retarget Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: bump ee ref for the claim helper caller contract Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 5a9f39d1188f94599c5cee24b9fe4e36a578ef80 This commit updates the EE repository reference after PR #977 was merged in windmill-ee-private. Previous ee-repo-ref: 95463c1ab277c80efc16cd0c2322bf32bbaceb7c New ee-repo-ref: 5a9f39d1188f94599c5cee24b9fe4e36a578ef80 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
18 lines
903 B
SQL
18 lines
903 B
SQL
-- The last pull/merge request head the "Windmill diff" check ran for, per git-sync
|
|
-- repository. The webhook receiver and the auto-pull poller both claim a head here
|
|
-- before checking it, so each head is checked once whichever path sees it first.
|
|
CREATE TABLE git_sync_pr_check_head (
|
|
workspace_id VARCHAR(50) NOT NULL REFERENCES workspace(id) ON DELETE CASCADE,
|
|
repo_resource_path VARCHAR(255) NOT NULL,
|
|
pr_number BIGINT NOT NULL,
|
|
head_sha VARCHAR(64) NOT NULL,
|
|
checked_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
-- Whether the check was started. A claim whose check never started (an error,
|
|
-- or a restart in between) may be claimed again after a delay.
|
|
started BOOLEAN NOT NULL DEFAULT false,
|
|
PRIMARY KEY (workspace_id, repo_resource_path, pr_number)
|
|
);
|
|
|
|
GRANT ALL ON git_sync_pr_check_head TO windmill_user;
|
|
GRANT ALL ON git_sync_pr_check_head TO windmill_admin;
|