opencode-magi 0.0.0-dev-20260522101732 → 0.0.0-dev-20260522104439
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.
- package/dist/github/commands.js +0 -29
- package/package.json +1 -1
package/dist/github/commands.js
CHANGED
|
@@ -369,38 +369,9 @@ export async function fetchPullRequestSafetyMeta(exec, repository, pr) {
|
|
|
369
369
|
}
|
|
370
370
|
return { author, changedFiles, files, labels };
|
|
371
371
|
}
|
|
372
|
-
export async function waitForChecks(exec, repository, pr, enabled = repository.checks.waitBeforeReview) {
|
|
373
|
-
if (!enabled)
|
|
374
|
-
return undefined;
|
|
375
|
-
const report = {
|
|
376
|
-
attempts: 0,
|
|
377
|
-
excluded: [],
|
|
378
|
-
failed: [],
|
|
379
|
-
rerun: [],
|
|
380
|
-
scopeInside: [],
|
|
381
|
-
scopeOutsideRecovered: [],
|
|
382
|
-
scopeOutsideUnresolved: [],
|
|
383
|
-
};
|
|
384
|
-
try {
|
|
385
|
-
await watchChecks(exec, repository, pr);
|
|
386
|
-
return report;
|
|
387
|
-
}
|
|
388
|
-
catch {
|
|
389
|
-
report.failed = applyCheckExclusions({
|
|
390
|
-
checks: await fetchFailedChecks(exec, repository, pr),
|
|
391
|
-
excluded: report.excluded,
|
|
392
|
-
patterns: repository.checks.exclude,
|
|
393
|
-
});
|
|
394
|
-
return report;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
372
|
export async function watchChecks(exec, repository, pr) {
|
|
398
373
|
await exec(`gh pr checks ${pr} --repo ${shellQuote(repoSpecifier(repository))} --watch`);
|
|
399
374
|
}
|
|
400
|
-
export async function fetchFailedChecks(exec, repository, pr) {
|
|
401
|
-
const checks = await fetchPullRequestChecks(exec, repository, pr);
|
|
402
|
-
return checks.filter((check) => isFailedCheck(check) || isCancelledCheck(check));
|
|
403
|
-
}
|
|
404
375
|
export function isCancelledCheck(check) {
|
|
405
376
|
return check.bucket === "cancel" || check.state === "CANCELLED";
|
|
406
377
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-magi",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260522104439",
|
|
4
4
|
"description": "Multi-agent PR review and merge orchestration plugin for OpenCode.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>",
|