opencode-magi 0.0.0-dev-20260519075440 → 0.0.0-dev-20260519082735
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.
|
@@ -359,6 +359,7 @@ async function finishMergeRun(input, result, reportInput) {
|
|
|
359
359
|
editorOutputs: reportInput.editorOutputs,
|
|
360
360
|
outputs: reportInput.outputs,
|
|
361
361
|
posted: reportInput.posted,
|
|
362
|
+
pr: input.pr,
|
|
362
363
|
repository: input.repository,
|
|
363
364
|
status: result.status,
|
|
364
365
|
});
|
|
@@ -542,6 +543,7 @@ export async function runMerge(input) {
|
|
|
542
543
|
editorOutputs: [],
|
|
543
544
|
outputs: {},
|
|
544
545
|
posted: {},
|
|
546
|
+
pr: input.pr,
|
|
545
547
|
repository: input.repository,
|
|
546
548
|
safety,
|
|
547
549
|
status: "safety_blocked",
|
|
@@ -10,6 +10,11 @@ function reportUrl(value) {
|
|
|
10
10
|
function linkOrText(text, url) {
|
|
11
11
|
return url ? `[${text}](${url})` : text;
|
|
12
12
|
}
|
|
13
|
+
function pullRequestLine(input) {
|
|
14
|
+
const host = input.repository.github.host || "github.com";
|
|
15
|
+
const url = `https://${host}/${input.repository.github.owner}/${input.repository.github.repo}/pull/${input.pr}`;
|
|
16
|
+
return `- **Pull Request**: [#${input.pr}](${url})`;
|
|
17
|
+
}
|
|
13
18
|
function formatFinding(finding) {
|
|
14
19
|
const line = finding.startLine == null
|
|
15
20
|
? `${finding.path}:${finding.line}`
|
|
@@ -150,6 +155,7 @@ function editorLines(outputs) {
|
|
|
150
155
|
}
|
|
151
156
|
export function formatReviewReport(input) {
|
|
152
157
|
return [
|
|
158
|
+
pullRequestLine(input),
|
|
153
159
|
...dryRunLines(input.dryRun),
|
|
154
160
|
...safetyLines(input.safety),
|
|
155
161
|
...checkLines(input.ciReports),
|
|
@@ -158,6 +164,7 @@ export function formatReviewReport(input) {
|
|
|
158
164
|
}
|
|
159
165
|
export function formatMergeReport(input) {
|
|
160
166
|
return [
|
|
167
|
+
pullRequestLine(input),
|
|
161
168
|
...mergeStatusLines(input.status),
|
|
162
169
|
...dryRunLines(input.dryRun),
|
|
163
170
|
...safetyLines(input.safety),
|
|
@@ -397,6 +397,7 @@ export async function runReview(input) {
|
|
|
397
397
|
dryRun: input.dryRun,
|
|
398
398
|
outputs: {},
|
|
399
399
|
posted: {},
|
|
400
|
+
pr: input.pr,
|
|
400
401
|
repository: input.repository,
|
|
401
402
|
safety,
|
|
402
403
|
});
|
|
@@ -793,6 +794,7 @@ export async function runReview(input) {
|
|
|
793
794
|
dryRun: input.dryRun,
|
|
794
795
|
outputs,
|
|
795
796
|
posted,
|
|
797
|
+
pr: input.pr,
|
|
796
798
|
repository: input.repository,
|
|
797
799
|
});
|
|
798
800
|
await writeFile(join(outputDir, "report.md"), `${report}\n`);
|
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-20260519082735",
|
|
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>",
|