The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 09:45 UTC
fix(ci): preserve mobile preview state after publication fails (#37577)
Julius Marminge committed
Nov 16, 2026 at 00:33 UTC
cef0f5d4731294c07f69081f1d297eb103b495b4
2 files changed
+7
-1
.github/scripts/mobile-preview-comment.cjs
+1
@@ -31,6 +31,7 @@ function readState(body) {
31
* the comment now shows.
32
*/
33
function mergeState(previous, next) {
34
+ if (!next.client && !next.group) return previous;
35
const buildOnly = Boolean(next.client) && !next.group;
36
if (
37
buildOnly &&
.github/scripts/mobile-preview-comment.test.cjs
+6
-1
@@ -30,8 +30,13 @@ test("the build job adds the install link without losing the update", () => {
30
);
31
});
32
33
-test("a new fingerprint drops the old client; the same one keeps it", () => {
33
+test("only a successful publication changes the fingerprint and client", () => {
34
const built = { fingerprint, client: "https://expo.dev/a/b", group: "old" };
35
+ assert.equal(mergeState(null, { fingerprint, client: "", group: "" }), null);
36
+ assert.deepEqual(
37
+ mergeState(built, { fingerprint: "f".repeat(40), client: "", group: "" }),
38
+ built,
39
+ );
40
assert.deepEqual(mergeState(built, { fingerprint, client: "", group: "new" }), {
41
fingerprint,
42
client: "https://expo.dev/a/b",