@atolis-hq/wake 0.4.97 → 0.4.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -124,6 +124,6 @@ export function resolveWakeVersion(options = {}) {
|
|
|
124
124
|
return `g${headHash.slice(0, 7)}`;
|
|
125
125
|
return '0.1.0-dev';
|
|
126
126
|
}
|
|
127
|
-
export const wakeVersion = "v0.4.
|
|
127
|
+
export const wakeVersion = "v0.4.98";
|
|
128
128
|
/** The registry-installable version used by packaged sandbox images. */
|
|
129
129
|
export const wakePackageVersion = packageVersion(defaultRepoRoot) ?? wakeVersion;
|
|
@@ -60,8 +60,13 @@ export function createGitHubWebhook(adapter, config, publicUrl, root, client, he
|
|
|
60
60
|
return 401;
|
|
61
61
|
if (!events.has(event))
|
|
62
62
|
return 404;
|
|
63
|
-
if
|
|
64
|
-
|
|
63
|
+
// A signed delivery proves ingress works, even if auto-provisioning failed
|
|
64
|
+
// earlier (e.g. a manually configured hook), so it supersedes that diagnosis.
|
|
65
|
+
if (saved.diagnosis !== undefined) {
|
|
66
|
+
const { diagnosis: _diagnosis, ...rest } = saved;
|
|
67
|
+
await state.save(owner, repo, rest);
|
|
68
|
+
}
|
|
69
|
+
health.recordSuccess(`${owner}/${repo}`, 'webhook');
|
|
65
70
|
trigger();
|
|
66
71
|
return 202;
|
|
67
72
|
});
|