Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): watched PRs wake the agent when they merge #26271

Mergedjuliusmarmingemerged 11 commits intomain fromrefs/pull/26271/headmerged by juliusmarminge View on GitHub

Showing 26 changed files with 4 additions and 6 deletions (loading 25).

x
0 of 26 viewed, 26 left
4 additions and 6 deletionsapps/server/src/orchestration-v2/PullRequestSyncReactor.tsModified
View file
@@ -17,7 +17,10 @@
threadPullRequestKeysEqual,
visibleThreadPullRequests,
} from "../sourceControl/threadPullRequests.ts";
-import { sourceControlDefinitions } from "../sourceControl/sourceControlDefinitions.ts";
+import {
+ isChangeRequestCloseCommand,
+ sourceControlDefinitions,
+} from "../sourceControl/sourceControlDefinitions.ts";
import * as Cause from "effect/Cause";
import * as Clock from "effect/Clock";
import * as Context from "effect/Context";
@@ -51,11 +54,6 @@
// A link whose host read failed waits a sweep, then twice as long after each further failure.
const FAILED_READ_BACKOFF_MS = 60 * 1_000;
​
-const isChangeRequestCloseCommand = (command: string) =>
- sourceControlDefinitions.definitions.some(
- (definition) => definition.changeRequestCloseCommand?.test(command) === true,
- );
-​
// Where a shell starts a command, past `NAME=value` assignments and wrappers like `timeout 60`.
// A create command anywhere else, as in `echo "gh pr create"`, is text, not a command that runs.
const COMMAND_START =
apps/server/src/orchestration-v2/PullRequestWatchReactor.tsModified
View file
Loading the diff