Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(ios): keep the watcher from treating a released build as drifted (#8285)
Peter Chinmanb917b59094e6
diff --git a/apps/web/scripts/ios-app-store.mjs b/apps/web/scripts/ios-app-store.mjsindex 0756dfa0d4..5071ed55c1 100644--- a/apps/web/scripts/ios-app-store.mjs+++ b/apps/web/scripts/ios-app-store.mjs@@ -628,7 +628,10 @@ async function inFlightVersionForPr(pr) {/// code changed after the release, so that build must never go live)./// GITHUB_OUTPUT gets withdrawn=true|false and, if the PR's version is past/// the point of withdrawal — approved by Apple or already shipped —-/// live=<version> (<build>) so the caller can warn loudly.+/// live=<version> (<build>) so the caller can warn loudly. With+/// --unless-tree <hash> (the watcher's drift check) a build whose stamp still+/// matches the PR's native code is left alone in every state, in-flight or+/// live: nothing drifted, so nothing to withdraw or warn about.async function withdraw() {const pr = args.pr ?? releasePr;if (!pr) {@@ -675,6 +678,13 @@ async function withdraw() {const stamp = await buildStamp(attached.data.id);if (stamp?.pr === String(pr)) {const live = `${record.attributes.versionString} (${attached.data.attributes.version})`;+ if (args["unless-tree"] && stamp.tree === args["unless-tree"]) {+ console.log(+ `PR #${pr}'s version ${live} is live on the App Store, built from native tree ` ++ `${stamp.tree}, which is still the PR's; nothing to withdraw.`,+ );+ return;+ }console.log(`PR #${pr}'s version ${live} is already live on the App Store.`);setGitHubOutput("live", live);return;