@ravshansbox/pi-next-issue 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/github.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ravshansbox/pi-next-issue",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Pi extension that works through GitHub issues in the background",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/github.ts CHANGED
@@ -273,6 +273,6 @@ export async function merge(
273
273
  if (Date.now() >= deadline) {
274
274
  return { merged: false, reason: 'the merge did not finish in time' };
275
275
  }
276
- await sleep(Math.min(POLL_MS, deadline - Date.now()), undefined, { signal });
276
+ await sleep(Math.max(0, Math.min(POLL_MS, deadline - Date.now())), undefined, { signal });
277
277
  }
278
278
  }