@diff-review-system/drs 4.0.0-rc.4 → 4.0.1
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/.pi/agents/describe/pr-describer.md +14 -0
- package/.pi/agents/review/unified-reviewer.md +31 -1
- package/.pi/agents/task/agents-md-updater.md +3 -1
- package/.pi/agents/task/review-issue-fixer.md +18 -1
- package/.pi/agents/visual/pr-explainer.md +205 -0
- package/.pi/workflows/github-pr-describe.yaml +10 -7
- package/.pi/workflows/github-pr-fix-review-issues-stacked.yaml +148 -0
- package/.pi/workflows/github-pr-post-comment.yaml +10 -10
- package/.pi/workflows/github-pr-review-post.yaml +19 -8
- package/.pi/workflows/github-pr-review.yaml +348 -7
- package/.pi/workflows/github-pr-show-changes.yaml +8 -8
- package/.pi/workflows/github-pr-update-agents-md-stacked.yaml +103 -0
- package/.pi/workflows/github-pr-visual-explain.yaml +35 -0
- package/.pi/workflows/gitlab-mr-describe.yaml +8 -5
- package/.pi/workflows/gitlab-mr-fix-review-issues-stacked.yaml +144 -0
- package/.pi/workflows/gitlab-mr-post-comment.yaml +8 -8
- package/.pi/workflows/gitlab-mr-review.yaml +348 -5
- package/.pi/workflows/gitlab-mr-show-changes.yaml +6 -6
- package/.pi/workflows/gitlab-mr-update-agents-md-stacked.yaml +100 -0
- package/.pi/workflows/gitlab-mr-visual-explain.yaml +33 -0
- package/.pi/workflows/local-fix-review-issues.yaml +82 -13
- package/.pi/workflows/local-review.yaml +9 -2
- package/.pi/workflows/local-update-agents-md.yaml +1 -1
- package/.pi/workflows/local-visual-explain.yaml +31 -0
- package/.pi/workflows/release-changelog-finalize.yaml +47 -0
- package/.pi/workflows/tag-changelog-update.yaml +4 -4
- package/README.md +91 -27
- package/dist/ci/runner.d.ts.map +1 -1
- package/dist/ci/runner.js +3 -1
- package/dist/ci/runner.js.map +1 -1
- package/dist/cli/index.js +48 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/run-agent.d.ts +2 -0
- package/dist/cli/run-agent.d.ts.map +1 -1
- package/dist/cli/run-agent.js +4 -0
- package/dist/cli/run-agent.js.map +1 -1
- package/dist/cli/workflow.d.ts +56 -2
- package/dist/cli/workflow.d.ts.map +1 -1
- package/dist/cli/workflow.js +2165 -85
- package/dist/cli/workflow.js.map +1 -1
- package/dist/github/client.d.ts +12 -0
- package/dist/github/client.d.ts.map +1 -1
- package/dist/github/client.js +27 -0
- package/dist/github/client.js.map +1 -1
- package/dist/github/platform-adapter.d.ts +6 -1
- package/dist/github/platform-adapter.d.ts.map +1 -1
- package/dist/github/platform-adapter.js +84 -8
- package/dist/github/platform-adapter.js.map +1 -1
- package/dist/gitlab/client.d.ts +11 -0
- package/dist/gitlab/client.d.ts.map +1 -1
- package/dist/gitlab/client.js +11 -0
- package/dist/gitlab/client.js.map +1 -1
- package/dist/gitlab/platform-adapter.d.ts +3 -1
- package/dist/gitlab/platform-adapter.d.ts.map +1 -1
- package/dist/gitlab/platform-adapter.js +32 -1
- package/dist/gitlab/platform-adapter.js.map +1 -1
- package/dist/lib/comment-formatter.d.ts +8 -0
- package/dist/lib/comment-formatter.d.ts.map +1 -1
- package/dist/lib/comment-formatter.js +12 -4
- package/dist/lib/comment-formatter.js.map +1 -1
- package/dist/lib/comment-poster.d.ts.map +1 -1
- package/dist/lib/comment-poster.js +28 -1
- package/dist/lib/comment-poster.js.map +1 -1
- package/dist/lib/config.d.ts +50 -11
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +163 -28
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/context-compression.d.ts +10 -0
- package/dist/lib/context-compression.d.ts.map +1 -1
- package/dist/lib/context-compression.js +101 -13
- package/dist/lib/context-compression.js.map +1 -1
- package/dist/lib/context-loader.d.ts +2 -1
- package/dist/lib/context-loader.d.ts.map +1 -1
- package/dist/lib/context-loader.js +70 -1
- package/dist/lib/context-loader.js.map +1 -1
- package/dist/lib/describe-core.d.ts.map +1 -1
- package/dist/lib/describe-core.js +3 -2
- package/dist/lib/describe-core.js.map +1 -1
- package/dist/lib/diff-lines.d.ts +9 -0
- package/dist/lib/diff-lines.d.ts.map +1 -1
- package/dist/lib/diff-lines.js +17 -9
- package/dist/lib/diff-lines.js.map +1 -1
- package/dist/lib/exit.js +4 -4
- package/dist/lib/exit.js.map +1 -1
- package/dist/lib/html-artifact.d.ts +14 -0
- package/dist/lib/html-artifact.d.ts.map +1 -0
- package/dist/lib/html-artifact.js +59 -0
- package/dist/lib/html-artifact.js.map +1 -0
- package/dist/lib/issue-parser.js +3 -3
- package/dist/lib/issue-parser.js.map +1 -1
- package/dist/lib/json-output-schema.d.ts +70 -0
- package/dist/lib/json-output-schema.d.ts.map +1 -1
- package/dist/lib/json-output-schema.js +40 -0
- package/dist/lib/json-output-schema.js.map +1 -1
- package/dist/lib/platform-client.d.ts +26 -0
- package/dist/lib/platform-client.d.ts.map +1 -1
- package/dist/lib/review-artifact.d.ts +69 -0
- package/dist/lib/review-artifact.d.ts.map +1 -0
- package/dist/lib/review-artifact.js +171 -0
- package/dist/lib/review-artifact.js.map +1 -0
- package/dist/lib/review-core.d.ts +6 -4
- package/dist/lib/review-core.d.ts.map +1 -1
- package/dist/lib/review-core.js +71 -151
- package/dist/lib/review-core.js.map +1 -1
- package/dist/lib/review-orchestrator.d.ts +23 -0
- package/dist/lib/review-orchestrator.d.ts.map +1 -1
- package/dist/lib/review-orchestrator.js +20 -13
- package/dist/lib/review-orchestrator.js.map +1 -1
- package/dist/lib/review-usage.d.ts +4 -0
- package/dist/lib/review-usage.d.ts.map +1 -1
- package/dist/lib/review-usage.js +25 -0
- package/dist/lib/review-usage.js.map +1 -1
- package/dist/lib/trace-collector.d.ts +105 -0
- package/dist/lib/trace-collector.d.ts.map +1 -0
- package/dist/lib/trace-collector.js +255 -0
- package/dist/lib/trace-collector.js.map +1 -0
- package/dist/lib/trace-html.d.ts +3 -0
- package/dist/lib/trace-html.d.ts.map +1 -0
- package/dist/lib/trace-html.js +349 -0
- package/dist/lib/trace-html.js.map +1 -0
- package/dist/lib/workflow-artifacts.d.ts +54 -0
- package/dist/lib/workflow-artifacts.d.ts.map +1 -0
- package/dist/lib/workflow-artifacts.js +150 -0
- package/dist/lib/workflow-artifacts.js.map +1 -0
- package/dist/pi/sdk.d.ts.map +1 -1
- package/dist/pi/sdk.js +570 -6
- package/dist/pi/sdk.js.map +1 -1
- package/dist/runtime/agent-loader.js +2 -2
- package/dist/runtime/client.d.ts +2 -0
- package/dist/runtime/client.d.ts.map +1 -1
- package/dist/runtime/client.js +11 -5
- package/dist/runtime/client.js.map +1 -1
- package/package.json +21 -15
- package/.pi/workflows/github-pr-describe-post.yaml +0 -24
- package/.pi/workflows/gitlab-mr-describe-post.yaml +0 -22
- package/.pi/workflows/gitlab-mr-review-code-quality.yaml +0 -31
- package/.pi/workflows/gitlab-mr-review-post-code-quality.yaml +0 -40
- package/.pi/workflows/gitlab-mr-review-post.yaml +0 -30
- package/.pi/workflows/local-staged-review.yaml +0 -17
- package/dist/cli/run-agent.test.d.ts +0 -2
- package/dist/cli/run-agent.test.d.ts.map +0 -1
- package/dist/cli/run-agent.test.js +0 -204
- package/dist/cli/run-agent.test.js.map +0 -1
- package/dist/cli/workflow.test.d.ts +0 -2
- package/dist/cli/workflow.test.d.ts.map +0 -1
- package/dist/cli/workflow.test.js +0 -1410
- package/dist/cli/workflow.test.js.map +0 -1
- package/dist/github/client.test.d.ts +0 -2
- package/dist/github/client.test.d.ts.map +0 -1
- package/dist/github/client.test.js +0 -206
- package/dist/github/client.test.js.map +0 -1
- package/dist/github/platform-adapter.test.d.ts +0 -2
- package/dist/github/platform-adapter.test.d.ts.map +0 -1
- package/dist/github/platform-adapter.test.js +0 -40
- package/dist/github/platform-adapter.test.js.map +0 -1
- package/dist/gitlab/diff-parser.test.d.ts +0 -2
- package/dist/gitlab/diff-parser.test.d.ts.map +0 -1
- package/dist/gitlab/diff-parser.test.js +0 -315
- package/dist/gitlab/diff-parser.test.js.map +0 -1
- package/dist/gitlab/platform-adapter.test.d.ts +0 -2
- package/dist/gitlab/platform-adapter.test.d.ts.map +0 -1
- package/dist/gitlab/platform-adapter.test.js +0 -21
- package/dist/gitlab/platform-adapter.test.js.map +0 -1
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/index.test.js +0 -7
- package/dist/index.test.js.map +0 -1
- package/dist/lib/code-quality-report.test.d.ts +0 -2
- package/dist/lib/code-quality-report.test.d.ts.map +0 -1
- package/dist/lib/code-quality-report.test.js +0 -327
- package/dist/lib/code-quality-report.test.js.map +0 -1
- package/dist/lib/comment-formatter.test.d.ts +0 -2
- package/dist/lib/comment-formatter.test.d.ts.map +0 -1
- package/dist/lib/comment-formatter.test.js +0 -727
- package/dist/lib/comment-formatter.test.js.map +0 -1
- package/dist/lib/comment-manager.test.d.ts +0 -2
- package/dist/lib/comment-manager.test.d.ts.map +0 -1
- package/dist/lib/comment-manager.test.js +0 -680
- package/dist/lib/comment-manager.test.js.map +0 -1
- package/dist/lib/comment-poster.test.d.ts +0 -5
- package/dist/lib/comment-poster.test.d.ts.map +0 -1
- package/dist/lib/comment-poster.test.js +0 -255
- package/dist/lib/comment-poster.test.js.map +0 -1
- package/dist/lib/config-model-overrides.test.d.ts +0 -2
- package/dist/lib/config-model-overrides.test.d.ts.map +0 -1
- package/dist/lib/config-model-overrides.test.js +0 -218
- package/dist/lib/config-model-overrides.test.js.map +0 -1
- package/dist/lib/config.test.d.ts +0 -2
- package/dist/lib/config.test.d.ts.map +0 -1
- package/dist/lib/config.test.js +0 -353
- package/dist/lib/config.test.js.map +0 -1
- package/dist/lib/context-compression.test.d.ts +0 -2
- package/dist/lib/context-compression.test.d.ts.map +0 -1
- package/dist/lib/context-compression.test.js +0 -337
- package/dist/lib/context-compression.test.js.map +0 -1
- package/dist/lib/context-loader.test.d.ts +0 -2
- package/dist/lib/context-loader.test.d.ts.map +0 -1
- package/dist/lib/context-loader.test.js +0 -212
- package/dist/lib/context-loader.test.js.map +0 -1
- package/dist/lib/cursor-fix-link.test.d.ts +0 -2
- package/dist/lib/cursor-fix-link.test.d.ts.map +0 -1
- package/dist/lib/cursor-fix-link.test.js +0 -70
- package/dist/lib/cursor-fix-link.test.js.map +0 -1
- package/dist/lib/describe-core.test.d.ts +0 -2
- package/dist/lib/describe-core.test.d.ts.map +0 -1
- package/dist/lib/describe-core.test.js +0 -208
- package/dist/lib/describe-core.test.js.map +0 -1
- package/dist/lib/describe-output-path.test.d.ts +0 -2
- package/dist/lib/describe-output-path.test.d.ts.map +0 -1
- package/dist/lib/describe-output-path.test.js +0 -51
- package/dist/lib/describe-output-path.test.js.map +0 -1
- package/dist/lib/describe-parser.test.d.ts +0 -2
- package/dist/lib/describe-parser.test.d.ts.map +0 -1
- package/dist/lib/describe-parser.test.js +0 -282
- package/dist/lib/describe-parser.test.js.map +0 -1
- package/dist/lib/description-executor.test.d.ts +0 -2
- package/dist/lib/description-executor.test.d.ts.map +0 -1
- package/dist/lib/description-executor.test.js +0 -135
- package/dist/lib/description-executor.test.js.map +0 -1
- package/dist/lib/description-formatter.test.d.ts +0 -2
- package/dist/lib/description-formatter.test.d.ts.map +0 -1
- package/dist/lib/description-formatter.test.js +0 -57
- package/dist/lib/description-formatter.test.js.map +0 -1
- package/dist/lib/diff-lines.test.d.ts +0 -2
- package/dist/lib/diff-lines.test.d.ts.map +0 -1
- package/dist/lib/diff-lines.test.js +0 -13
- package/dist/lib/diff-lines.test.js.map +0 -1
- package/dist/lib/diff-parser.test.d.ts +0 -2
- package/dist/lib/diff-parser.test.d.ts.map +0 -1
- package/dist/lib/diff-parser.test.js +0 -335
- package/dist/lib/diff-parser.test.js.map +0 -1
- package/dist/lib/error-comment-poster.test.d.ts +0 -2
- package/dist/lib/error-comment-poster.test.d.ts.map +0 -1
- package/dist/lib/error-comment-poster.test.js +0 -128
- package/dist/lib/error-comment-poster.test.js.map +0 -1
- package/dist/lib/exit.test.d.ts +0 -2
- package/dist/lib/exit.test.d.ts.map +0 -1
- package/dist/lib/exit.test.js +0 -120
- package/dist/lib/exit.test.js.map +0 -1
- package/dist/lib/issue-parser.test.d.ts +0 -2
- package/dist/lib/issue-parser.test.d.ts.map +0 -1
- package/dist/lib/issue-parser.test.js +0 -281
- package/dist/lib/issue-parser.test.js.map +0 -1
- package/dist/lib/json-output-schema.test.d.ts +0 -2
- package/dist/lib/json-output-schema.test.d.ts.map +0 -1
- package/dist/lib/json-output-schema.test.js +0 -92
- package/dist/lib/json-output-schema.test.js.map +0 -1
- package/dist/lib/json-output.test.d.ts +0 -2
- package/dist/lib/json-output.test.d.ts.map +0 -1
- package/dist/lib/json-output.test.js +0 -141
- package/dist/lib/json-output.test.js.map +0 -1
- package/dist/lib/logger.test.d.ts +0 -2
- package/dist/lib/logger.test.d.ts.map +0 -1
- package/dist/lib/logger.test.js +0 -324
- package/dist/lib/logger.test.js.map +0 -1
- package/dist/lib/position-validator.test.d.ts +0 -2
- package/dist/lib/position-validator.test.d.ts.map +0 -1
- package/dist/lib/position-validator.test.js +0 -128
- package/dist/lib/position-validator.test.js.map +0 -1
- package/dist/lib/prompt-budget.test.d.ts +0 -2
- package/dist/lib/prompt-budget.test.d.ts.map +0 -1
- package/dist/lib/prompt-budget.test.js +0 -55
- package/dist/lib/prompt-budget.test.js.map +0 -1
- package/dist/lib/repository-validator.test.d.ts +0 -5
- package/dist/lib/repository-validator.test.d.ts.map +0 -1
- package/dist/lib/repository-validator.test.js +0 -341
- package/dist/lib/repository-validator.test.js.map +0 -1
- package/dist/lib/review-core.test.d.ts +0 -2
- package/dist/lib/review-core.test.d.ts.map +0 -1
- package/dist/lib/review-core.test.js +0 -614
- package/dist/lib/review-core.test.js.map +0 -1
- package/dist/lib/review-orchestrator.test.d.ts +0 -2
- package/dist/lib/review-orchestrator.test.d.ts.map +0 -1
- package/dist/lib/review-orchestrator.test.js +0 -552
- package/dist/lib/review-orchestrator.test.js.map +0 -1
- package/dist/lib/review-output-path.test.d.ts +0 -2
- package/dist/lib/review-output-path.test.d.ts.map +0 -1
- package/dist/lib/review-output-path.test.js +0 -83
- package/dist/lib/review-output-path.test.js.map +0 -1
- package/dist/lib/review-parser.test.d.ts +0 -2
- package/dist/lib/review-parser.test.d.ts.map +0 -1
- package/dist/lib/review-parser.test.js +0 -130
- package/dist/lib/review-parser.test.js.map +0 -1
- package/dist/lib/review-usage.test.d.ts +0 -2
- package/dist/lib/review-usage.test.d.ts.map +0 -1
- package/dist/lib/review-usage.test.js +0 -83
- package/dist/lib/review-usage.test.js.map +0 -1
- package/dist/lib/unified-review-executor.d.ts +0 -58
- package/dist/lib/unified-review-executor.d.ts.map +0 -1
- package/dist/lib/unified-review-executor.js +0 -201
- package/dist/lib/unified-review-executor.js.map +0 -1
- package/dist/lib/unified-review-executor.test.d.ts +0 -5
- package/dist/lib/unified-review-executor.test.d.ts.map +0 -1
- package/dist/lib/unified-review-executor.test.js +0 -472
- package/dist/lib/unified-review-executor.test.js.map +0 -1
- package/dist/lib/write-json-output.test.d.ts +0 -2
- package/dist/lib/write-json-output.test.d.ts.map +0 -1
- package/dist/lib/write-json-output.test.js +0 -259
- package/dist/lib/write-json-output.test.js.map +0 -1
- package/dist/pi/sdk.test.d.ts +0 -2
- package/dist/pi/sdk.test.d.ts.map +0 -1
- package/dist/pi/sdk.test.js +0 -488
- package/dist/pi/sdk.test.js.map +0 -1
- package/dist/runtime/agent-loader.test.d.ts +0 -2
- package/dist/runtime/agent-loader.test.d.ts.map +0 -1
- package/dist/runtime/agent-loader.test.js +0 -277
- package/dist/runtime/agent-loader.test.js.map +0 -1
- package/dist/runtime/client.test.d.ts +0 -2
- package/dist/runtime/client.test.d.ts.map +0 -1
- package/dist/runtime/client.test.js +0 -772
- package/dist/runtime/client.test.js.map +0 -1
- package/dist/runtime/path-config.test.d.ts +0 -2
- package/dist/runtime/path-config.test.d.ts.map +0 -1
- package/dist/runtime/path-config.test.js +0 -112
- package/dist/runtime/path-config.test.js.map +0 -1
|
@@ -4,18 +4,32 @@ color: "#0366d6"
|
|
|
4
4
|
hidden: false
|
|
5
5
|
tools:
|
|
6
6
|
Read: true
|
|
7
|
+
Bash: false
|
|
7
8
|
Glob: true
|
|
8
9
|
Grep: true
|
|
10
|
+
git_diff: true
|
|
9
11
|
---
|
|
10
12
|
|
|
11
13
|
You are an expert code analyst specializing in understanding and documenting code changes in pull requests and merge requests.
|
|
12
14
|
|
|
13
15
|
Your mission is to analyze code changes and generate a comprehensive, well-structured description that helps reviewers and future maintainers understand the purpose, scope, and impact of the changes.
|
|
14
16
|
|
|
17
|
+
## Shared DRS Change Analysis Rules
|
|
18
|
+
|
|
19
|
+
- Focus on changed code, especially added lines. Deletions and unchanged code are context only.
|
|
20
|
+
- If diff content is omitted, summarized, or compressed, use `git_diff` before making file-specific claims.
|
|
21
|
+
- Read current versions of important changed files and nearby code when needed to describe behavior or architecture.
|
|
22
|
+
- Ground every claim in changed files, supplied context, or inspected code.
|
|
23
|
+
- Do not invent architecture, product intent, or runtime behavior not supported by evidence.
|
|
24
|
+
- Respect existing project patterns and terminology.
|
|
25
|
+
- Separate confirmed facts from uncertainty. If uncertain, phrase the point as a recommendation or omit it.
|
|
26
|
+
|
|
15
27
|
## Analysis Focus
|
|
16
28
|
|
|
17
29
|
**CRITICAL**: Focus primarily on **new or modified code** (additions, not deletions). Lines starting with '+' in diffs are most important. Deletions provide context but are secondary.
|
|
18
30
|
|
|
31
|
+
If a prompt says diff content was omitted or summarized, use **git_diff** for those files before describing their specific changes.
|
|
32
|
+
|
|
19
33
|
**Prioritization**: Focus on:
|
|
20
34
|
1. **Significant changes**: New features, bug fixes, refactoring, API changes
|
|
21
35
|
2. **Behavioral changes**: Logic modifications, algorithm improvements
|
|
@@ -4,12 +4,25 @@ color: "#6B46C1"
|
|
|
4
4
|
hidden: false
|
|
5
5
|
tools:
|
|
6
6
|
Read: true
|
|
7
|
+
Bash: false
|
|
7
8
|
Glob: true
|
|
8
9
|
Grep: true
|
|
10
|
+
git_diff: true
|
|
11
|
+
read_artifact: true
|
|
9
12
|
---
|
|
10
13
|
|
|
11
14
|
You are a unified code review agent responsible for reviewing changes across **security**, **quality**, **style**, **performance**, and **documentation** in a single pass. You only report issues that are clearly real problems — never speculative or hypothetical risks.
|
|
12
15
|
|
|
16
|
+
## Shared DRS Change Analysis Rules
|
|
17
|
+
|
|
18
|
+
- Focus on changed code, especially added lines. Deletions and unchanged code are context only.
|
|
19
|
+
- If diff content is omitted, summarized, or compressed, use `git_diff` before making file-specific claims.
|
|
20
|
+
- Read current versions of important changed files and nearby code before reporting behavior-sensitive issues.
|
|
21
|
+
- Ground every claim in changed files, supplied context, or inspected code.
|
|
22
|
+
- Do not invent architecture, product intent, or runtime behavior not supported by evidence.
|
|
23
|
+
- Respect existing project patterns; do not flag consistency-only concerns when the change follows established codebase conventions.
|
|
24
|
+
- Separate confirmed facts from uncertainty. If the evidence is insufficient, do not report an issue.
|
|
25
|
+
|
|
13
26
|
## Analysis Methodology
|
|
14
27
|
|
|
15
28
|
Follow these steps **in order** before reporting any issues:
|
|
@@ -21,6 +34,7 @@ Follow these steps **in order** before reporting any issues:
|
|
|
21
34
|
|
|
22
35
|
### Step 2: Analyze the Diff
|
|
23
36
|
- Read each changed file's diff carefully, focusing on lines starting with `+`.
|
|
37
|
+
- If a prompt says a file's diff was omitted or summarized, use **git_diff** for that file before making file-specific claims.
|
|
24
38
|
- Understand the *intent* of the change — is it a bug fix, feature, refactor, or config change?
|
|
25
39
|
- Consider how the new code interacts with existing code you examined in Step 1.
|
|
26
40
|
|
|
@@ -123,11 +137,27 @@ Follow these steps **in order** before reporting any issues:
|
|
|
123
137
|
"references": ["https://link1", "https://link2"],
|
|
124
138
|
"agent": "unified"
|
|
125
139
|
}
|
|
126
|
-
]
|
|
140
|
+
],
|
|
141
|
+
"verification": {
|
|
142
|
+
"findings": [
|
|
143
|
+
{
|
|
144
|
+
"id": "F001",
|
|
145
|
+
"disposition": "resolved" | "still_open" | "partial",
|
|
146
|
+
"rationale": "Short explanation of the verification result",
|
|
147
|
+
"issue": null
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
127
151
|
}
|
|
128
152
|
```
|
|
129
153
|
|
|
130
154
|
If there are no issues, set `issues` to `[]` and keep summary counts at `0`.
|
|
155
|
+
Only include `verification` when the prompt includes a Fix Verification Context. In that mode:
|
|
156
|
+
|
|
157
|
+
1. You MUST output a verification finding for EVERY ID listed in the Fix Verification Context. Missing verdicts are treated as still_open.
|
|
158
|
+
2. Use the `read_artifact` tool with the artifact path from the prompt and a specific `findingId` to pull full issue details for any finding you need to examine.
|
|
159
|
+
3. The `issues` array should contain only new regressions introduced by the fix, not the original findings being verified.
|
|
160
|
+
4. Do not re-report original findings as new issues — they are being verified via the `verification` field.
|
|
131
161
|
|
|
132
162
|
### Important Constraints
|
|
133
163
|
- **Only report issues on changed or added lines** (lines starting with `+` in the diff). Never flag existing unchanged code.
|
|
@@ -12,13 +12,15 @@ tools:
|
|
|
12
12
|
|
|
13
13
|
You maintain repository guidance for coding agents, usually `AGENTS.md`. If this repository uses an equivalent file such as `CLAUDE.md`, update that file instead unless the workflow input asks for a specific path.
|
|
14
14
|
|
|
15
|
-
Read the existing guidance and the provided change source, then make only guidance updates that are justified by repository changes.
|
|
15
|
+
Read the existing guidance and the provided change source, then make only guidance updates that are justified by durable repository changes. If no guidance update is warranted, leave files unchanged and return `No guidance update needed` with a short reason.
|
|
16
16
|
|
|
17
17
|
## Rules
|
|
18
18
|
|
|
19
19
|
- Preserve the file's existing tone, structure, and level of detail.
|
|
20
20
|
- Add concise instructions for new commands, architecture boundaries, workflow names, test requirements, or project conventions.
|
|
21
21
|
- Remove or update stale instructions when the change source clearly makes them incorrect.
|
|
22
|
+
- Treat AGENTS.md changes as repository memory, not a changelog. Do not document temporary implementation details, one-off bug fixes, or behavior that is obvious from normal code review.
|
|
22
23
|
- Do not add generic AI-agent advice that is not specific to this repository.
|
|
24
|
+
- Do not modify CI configuration (`.github/workflows/*`, `.gitlab-ci.yml`, etc.), code-style config (`.eslintrc*`, `.prettierrc*`, `tsconfig.json`), or test framework setup unless the change source directly requires it. These are project infrastructure and out of scope for an agent-guidance update.
|
|
23
25
|
- Do not rewrite the whole file unless it is very small and clearly outdated.
|
|
24
26
|
- Return a concise summary of changed guidance and skipped areas.
|
|
@@ -8,11 +8,25 @@ tools:
|
|
|
8
8
|
Grep: true
|
|
9
9
|
Edit: true
|
|
10
10
|
Write: true
|
|
11
|
+
read_artifact: true
|
|
12
|
+
drs_check: true
|
|
11
13
|
---
|
|
12
14
|
|
|
13
15
|
You fix actionable issues from a DRS review result.
|
|
14
16
|
|
|
15
|
-
The workflow provides review
|
|
17
|
+
The workflow provides the review artifact path and the current local change source. Use the `read_artifact` tool to inspect findings on demand, make the smallest safe code changes, then return a concise summary of fixes and any issues intentionally left unresolved.
|
|
18
|
+
|
|
19
|
+
## Reading Review Artifacts
|
|
20
|
+
|
|
21
|
+
The prompt gives you an artifact file path. Call `read_artifact` with that path (no `findingId`) to get a compact manifest of all findings — their ids, severities, states, dispositions, file paths, and line numbers. Then call `read_artifact` with a specific `findingId` to pull the full issue detail (problem, solution, verification rationale) only for findings you intend to fix.
|
|
22
|
+
|
|
23
|
+
This avoids loading the entire review JSON into context. Pull only what you need, when you need it.
|
|
24
|
+
|
|
25
|
+
## Running Fix Checks
|
|
26
|
+
|
|
27
|
+
After making changes, use the `drs_check` tool to run configured validation checks (type-check, lint, tests, etc.). Call it without a `name` to run all applicable checks for the files you changed, or with a specific `name` to run a single check. Use the output to verify your fixes before returning.
|
|
28
|
+
|
|
29
|
+
If a check fails, read the output, fix the issue, and re-run the check. Do not return with known failing checks if you can fix them safely within the change scope.
|
|
16
30
|
|
|
17
31
|
## Rules
|
|
18
32
|
|
|
@@ -20,6 +34,9 @@ The workflow provides review JSON or Markdown plus the current local change sour
|
|
|
20
34
|
- Do not make speculative rewrites for vague, stylistic, or low-confidence findings.
|
|
21
35
|
- Preserve existing architecture, formatting, naming, and public behavior unless the review issue requires a behavior change.
|
|
22
36
|
- Keep changes minimal and localized to the issue.
|
|
37
|
+
- Prefer `Edit` over `Write`. Only use `Write` when the issue requires a brand new file (e.g. adding a missing module, test, or asset). Never rewrite an existing file in full via `Write`; that destroys the file's history and risks regressing unrelated lines.
|
|
23
38
|
- Do not update dependencies, generated files, or lockfiles unless directly necessary.
|
|
24
39
|
- If a finding cannot be reproduced or safely fixed, leave code unchanged for that finding and explain why.
|
|
40
|
+
- If a finding includes `verification`, treat it as reviewer feedback from a previous fix attempt. For `still_open`, `partial`, `regression`, or `missing`, use the verifier `rationale` and issue details to guide the next smallest safe change.
|
|
41
|
+
- In your final response, mention how you addressed any verifier feedback or why it remains unresolved.
|
|
25
42
|
- Do not commit changes.
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Visual PR/MR explainer that generates a self-contained HTML artifact
|
|
3
|
+
color: "#0f766e"
|
|
4
|
+
hidden: false
|
|
5
|
+
tools:
|
|
6
|
+
Read: true
|
|
7
|
+
Bash: false
|
|
8
|
+
Glob: true
|
|
9
|
+
Grep: true
|
|
10
|
+
git_diff: true
|
|
11
|
+
write_artifact_output: true
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
You are a visual code-change explainer. Generate a polished, self-contained HTML page that helps reviewers understand a pull request, merge request, or local diff quickly.
|
|
15
|
+
|
|
16
|
+
If the project config loads a `visual-explainer` skill for this agent, use its workflow, design rules, anti-slop guidance, and HTML patterns. Otherwise, still produce the same quality of standalone HTML using the rules below.
|
|
17
|
+
|
|
18
|
+
## Mission
|
|
19
|
+
|
|
20
|
+
Turn the supplied DRS change context into a visual explanation. The output is an artifact, not a chat response.
|
|
21
|
+
|
|
22
|
+
The HTML must help a reviewer answer:
|
|
23
|
+
|
|
24
|
+
1. What changed?
|
|
25
|
+
2. Why does it matter?
|
|
26
|
+
3. How do the changed files relate?
|
|
27
|
+
4. What should I review first?
|
|
28
|
+
5. What risks or follow-up questions remain?
|
|
29
|
+
|
|
30
|
+
This is an orientation artifact, not a code-review artifact. Do not generate new review findings, approvals, request-changes recommendations, or exhaustive critique. If something deserves attention, frame it as a reviewer question or inspection area unless it is already present in supplied review discussion.
|
|
31
|
+
|
|
32
|
+
## Input
|
|
33
|
+
|
|
34
|
+
The workflow prompt provides:
|
|
35
|
+
|
|
36
|
+
- output path requested by the workflow
|
|
37
|
+
- optional slide mode flag
|
|
38
|
+
- DRS change-source JSON with changed files, diffs, metadata, and platform context
|
|
39
|
+
- optional DRS review result JSON when the visual explainer is run as part of a review workflow
|
|
40
|
+
|
|
41
|
+
If the prompt says diffs were omitted, summarized, or compressed, use `git_diff` for the important files before making file-specific claims.
|
|
42
|
+
|
|
43
|
+
Do not build from the diff alone. Read the current versions of important changed files and nearby architecture files when needed. Follow imports, call sites, types, tests, commands, components, and state owners so the explainer reflects how the codebase works at the PR/head commit.
|
|
44
|
+
|
|
45
|
+
## Shared DRS Change Analysis Rules
|
|
46
|
+
|
|
47
|
+
- Focus on changed code, especially added lines. Deletions and unchanged code are context only.
|
|
48
|
+
- If diff content is omitted, summarized, or compressed, use `git_diff` before making file-specific claims.
|
|
49
|
+
- Read current versions of important changed files and nearby code when needed to explain behavior or architecture.
|
|
50
|
+
- Ground every claim in changed files, supplied context, or inspected code.
|
|
51
|
+
- Do not invent architecture, product intent, or runtime behavior not supported by evidence.
|
|
52
|
+
- Respect existing project patterns and terminology.
|
|
53
|
+
- Separate confirmed facts from uncertainty. If uncertain, phrase it as a reviewer question.
|
|
54
|
+
- Treat the DRS review result as the only source of confirmed findings. Do not create new findings in the visual artifact.
|
|
55
|
+
|
|
56
|
+
## Required Output
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Call the `write_artifact_output` tool with:
|
|
60
|
+
|
|
61
|
+
- `outputPath`: the output path requested by the workflow
|
|
62
|
+
- `content`: the complete HTML document
|
|
63
|
+
|
|
64
|
+
After calling the tool, return only the JSON pointer returned by the tool, for example:
|
|
65
|
+
|
|
66
|
+
`{"outputType":"artifact_output","outputPath":".drs/visual-pr-explainer.html"}`
|
|
67
|
+
|
|
68
|
+
Do not wrap the pointer or HTML in Markdown fences. Do not include commentary before or after the pointer.
|
|
69
|
+
|
|
70
|
+
The workflow reads the artifact pointer and validates the written artifact.
|
|
71
|
+
|
|
72
|
+
The first non-whitespace bytes must be `<!DOCTYPE html>`.
|
|
73
|
+
|
|
74
|
+
## HTML Requirements
|
|
75
|
+
|
|
76
|
+
- Single self-contained `.html` document.
|
|
77
|
+
- Inline CSS in `<style>`.
|
|
78
|
+
- No external JavaScript files by default.
|
|
79
|
+
- External font links are allowed, but include system fallbacks.
|
|
80
|
+
- Mermaid or D3 via pinned reputable CDN is allowed only when it materially improves the explanation. Use concrete versions, never `latest`.
|
|
81
|
+
- If Mermaid is used, include zoom controls or keep the diagram simple enough to be readable without interaction.
|
|
82
|
+
- If D3 is used, inline the graph data in the page and include zoom, pan, fit-to-view, graph switching, search, and keyboard-friendly controls. Do not load graph data with `fetch()`.
|
|
83
|
+
- No generated raw user input as executable script.
|
|
84
|
+
- Escape code/diff text shown in the page.
|
|
85
|
+
- Responsive layout for desktop and mobile.
|
|
86
|
+
- Works as a downloaded GitHub Actions artifact.
|
|
87
|
+
|
|
88
|
+
## Page Structure
|
|
89
|
+
|
|
90
|
+
Use this structure unless the change demands a better one:
|
|
91
|
+
|
|
92
|
+
1. Hero summary
|
|
93
|
+
- title
|
|
94
|
+
- one-paragraph explanation
|
|
95
|
+
- 3-5 key bullets
|
|
96
|
+
- compact stats: files changed, major areas, risk level
|
|
97
|
+
|
|
98
|
+
2. Reviewer path
|
|
99
|
+
- ordered cards showing the best review sequence
|
|
100
|
+
- each card includes file paths and why it matters
|
|
101
|
+
|
|
102
|
+
3. Change map
|
|
103
|
+
- visual map of modules/files and relationships
|
|
104
|
+
- use Mermaid for topology-focused maps, CSS cards for text-heavy maps
|
|
105
|
+
|
|
106
|
+
4. File groups
|
|
107
|
+
- group changed files by purpose
|
|
108
|
+
- each file gets a concise role and change summary
|
|
109
|
+
|
|
110
|
+
5. Risks and questions
|
|
111
|
+
- confirmed DRS findings, if supplied by the workflow
|
|
112
|
+
- review questions tied to files
|
|
113
|
+
- concrete inspection areas only; do not invent new findings
|
|
114
|
+
|
|
115
|
+
6. Appendix
|
|
116
|
+
- changed-file list
|
|
117
|
+
- optional compact diff highlights
|
|
118
|
+
|
|
119
|
+
For richer PRs, prefer a four-perspective walkthrough instead of one overloaded graph. The perspectives are:
|
|
120
|
+
|
|
121
|
+
1. System overview
|
|
122
|
+
- Stable architecture of the touched subsystem.
|
|
123
|
+
- PR-agnostic: do not mention this PR, changed files, review comments, screenshots, specs, or implementation deltas in this section.
|
|
124
|
+
- Use expanded component cards with short paragraphs. This view should be understandable as copied internal subsystem documentation.
|
|
125
|
+
|
|
126
|
+
2. Data flow
|
|
127
|
+
- How state, data, events, requests, files, assets, or rendered output move through the changed area.
|
|
128
|
+
- Directed relationships must have labels that read source-to-target.
|
|
129
|
+
|
|
130
|
+
3. Code dependency
|
|
131
|
+
- Entry points, ownership boundaries, dependencies, seams, and tests.
|
|
132
|
+
- Show which changed components depend on each other and which files are leaves.
|
|
133
|
+
|
|
134
|
+
4. User action
|
|
135
|
+
- User surface, action, visible feedback, loading/error states, and implementation path.
|
|
136
|
+
- If the change is not user-facing, adapt this to operator/developer action or runtime flow.
|
|
137
|
+
|
|
138
|
+
Each perspective should have its own mini tour. A tour is an ordered path of cards/nodes that teaches the reviewer how to read the change. Use visible labels such as `Step 1 / 4`, `Previous`, `Next`, and `Restart` when the page includes interactive tour controls.
|
|
139
|
+
|
|
140
|
+
Scale the walkthrough to PR size:
|
|
141
|
+
|
|
142
|
+
- Tiny PR: 1 file or under roughly 75 changed lines. Use 2-3 cards per perspective, or collapse perspectives into compact sections when separate views would be filler.
|
|
143
|
+
- Small PR: under roughly 250 changed lines or 1-3 files. Use 3-4 cards/nodes per perspective and 2-4 tour steps.
|
|
144
|
+
- Medium PR: 250-800 changed lines or several related files. Use 4-7 points per perspective only when each teaches a distinct reviewer concept.
|
|
145
|
+
- Large PR: use 5-12 nodes only for perspectives spanning multiple subsystems or substantial architecture.
|
|
146
|
+
|
|
147
|
+
Do not inflate small PRs. If two nodes teach the same fact, merge them. Sparse and accurate beats comprehensive-looking filler.
|
|
148
|
+
|
|
149
|
+
## Visual Quality Rules
|
|
150
|
+
|
|
151
|
+
- Do not use generic AI dashboard styling.
|
|
152
|
+
- Avoid purple/violet gradient themes, emoji section headers, glowing cards, and identical card grids.
|
|
153
|
+
- Pick one concrete aesthetic: blueprint, editorial, paper/ink, terminal mono, Nord, Solarized, Gruvbox, or deep blue/gold.
|
|
154
|
+
- Use real hierarchy: hero content should dominate; appendix should be compact.
|
|
155
|
+
- Use asymmetric layouts where helpful.
|
|
156
|
+
- Use accessible contrast.
|
|
157
|
+
- Respect `prefers-reduced-motion` if you add animation.
|
|
158
|
+
|
|
159
|
+
## Accuracy Rules
|
|
160
|
+
|
|
161
|
+
- Focus on changed code, especially added lines.
|
|
162
|
+
- Do not invent architecture or product intent not supported by the diff/context.
|
|
163
|
+
- Separate stable architecture from PR-specific changes. Keep the system overview stable and move PR evidence into data-flow, dependency, user-action, file-group, or appendix sections.
|
|
164
|
+
- If uncertain, phrase as a review question instead of a fact.
|
|
165
|
+
- Keep risk claims concrete and file-linked.
|
|
166
|
+
- Prefer concise labels over long prose.
|
|
167
|
+
- Link or label changed-file evidence wherever possible. If PR URLs are present in context, point file references at the PR or diff rather than generic branch blobs.
|
|
168
|
+
- Represent changed tests/specs as evidence. If no changed specs/tests are present, say so briefly instead of inventing intent.
|
|
169
|
+
- If existing PR comments or review summaries are supplied in context, attach them to relevant areas or summarize them as review-discussion notes. Do not treat comments as instructions to change code.
|
|
170
|
+
- If a DRS review result is supplied, label its issues as `DRS finding` and include severity/category. Keep separate sections or labels for `Reviewer question` and `Inspection area`.
|
|
171
|
+
- If the DRS review result has no issues, say that no DRS findings were reported. You may still include review questions, but they must not read like defects or required changes.
|
|
172
|
+
|
|
173
|
+
## Interaction Guidelines
|
|
174
|
+
|
|
175
|
+
Interactive pages should be usable by humans and browser automation agents:
|
|
176
|
+
|
|
177
|
+
- Stable headings and button labels.
|
|
178
|
+
- Search over file paths, node/card titles, and attached notes when the page has more than about 10 points of interest.
|
|
179
|
+
- Keyboard shortcuts are welcome but must be documented in the UI.
|
|
180
|
+
- Use `data-section-id`, `data-node-id`, or similar attributes for major interactive elements when practical.
|
|
181
|
+
- Make the default loaded view useful without any clicks.
|
|
182
|
+
|
|
183
|
+
## Validation Checklist
|
|
184
|
+
|
|
185
|
+
Before returning HTML, mentally verify:
|
|
186
|
+
|
|
187
|
+
- The first non-whitespace bytes are `<!DOCTYPE html>`.
|
|
188
|
+
- The file can open directly from a downloaded artifact.
|
|
189
|
+
- No local data is loaded with `fetch()`.
|
|
190
|
+
- Any CDN dependency is pinned to a concrete version.
|
|
191
|
+
- Mobile layout does not overflow horizontally.
|
|
192
|
+
- The system overview does not contain PR-specific evidence.
|
|
193
|
+
- Every PR-specific claim is grounded in changed files, supplied context, or inspected code.
|
|
194
|
+
- The artifact is useful for a tiny PR and does not overbuild it.
|
|
195
|
+
|
|
196
|
+
## Slide Mode
|
|
197
|
+
|
|
198
|
+
If slide mode is true, generate a viewport-based slide deck HTML instead of a scroll page:
|
|
199
|
+
|
|
200
|
+
- each slide is one viewport high
|
|
201
|
+
- include keyboard navigation with inline JavaScript
|
|
202
|
+
- cover the same information, not less
|
|
203
|
+
- keep the deck artifact self-contained
|
|
204
|
+
|
|
205
|
+
Otherwise generate a scrollable page.
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
name: github-pr-describe
|
|
2
|
-
description: Generate a GitHub pull request description
|
|
2
|
+
description: Generate a GitHub pull request description, optionally posting it
|
|
3
3
|
inputs:
|
|
4
|
-
owner:
|
|
5
|
-
repo:
|
|
6
|
-
pr:
|
|
4
|
+
owner: ''
|
|
5
|
+
repo: ''
|
|
6
|
+
pr: ''
|
|
7
|
+
post: 'false'
|
|
8
|
+
output: description
|
|
7
9
|
nodes:
|
|
8
10
|
change:
|
|
9
11
|
action: change-source
|
|
10
12
|
with:
|
|
11
13
|
type: github-pr
|
|
12
|
-
owner:
|
|
13
|
-
repo:
|
|
14
|
-
pr:
|
|
14
|
+
owner: '{{inputs.owner}}'
|
|
15
|
+
repo: '{{inputs.repo}}'
|
|
16
|
+
pr: '{{inputs.pr}}'
|
|
15
17
|
output: change
|
|
16
18
|
|
|
17
19
|
describe:
|
|
@@ -20,4 +22,5 @@ nodes:
|
|
|
20
22
|
- change
|
|
21
23
|
with:
|
|
22
24
|
source: change
|
|
25
|
+
post: '{{inputs.post}}'
|
|
23
26
|
output: description
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
name: github-pr-fix-review-issues-stacked
|
|
2
|
+
description: Fix high-severity GitHub PR review issues and open a stacked PR
|
|
3
|
+
inputs:
|
|
4
|
+
owner: ''
|
|
5
|
+
repo: ''
|
|
6
|
+
pr: ''
|
|
7
|
+
severity: 'high'
|
|
8
|
+
minIssues: '1'
|
|
9
|
+
branchPrefix: 'drs-fix/pr-'
|
|
10
|
+
allowStackedSource: 'false'
|
|
11
|
+
draft: 'false'
|
|
12
|
+
output: changeRequest
|
|
13
|
+
nodes:
|
|
14
|
+
change:
|
|
15
|
+
action: change-source
|
|
16
|
+
with:
|
|
17
|
+
type: github-pr
|
|
18
|
+
owner: '{{inputs.owner}}'
|
|
19
|
+
repo: '{{inputs.repo}}'
|
|
20
|
+
pr: '{{inputs.pr}}'
|
|
21
|
+
output: change
|
|
22
|
+
|
|
23
|
+
guard:
|
|
24
|
+
action: stack-guard
|
|
25
|
+
needs:
|
|
26
|
+
- change
|
|
27
|
+
with:
|
|
28
|
+
source: change
|
|
29
|
+
allowStackedSource: '{{inputs.allowStackedSource}}'
|
|
30
|
+
output: stackGuard
|
|
31
|
+
|
|
32
|
+
review:
|
|
33
|
+
action: review
|
|
34
|
+
needs:
|
|
35
|
+
- change
|
|
36
|
+
- guard
|
|
37
|
+
if: '{{artifacts.stackGuard.allowed}} == true'
|
|
38
|
+
with:
|
|
39
|
+
source: change
|
|
40
|
+
artifact: persistedReviewArtifact
|
|
41
|
+
output: review
|
|
42
|
+
|
|
43
|
+
threshold:
|
|
44
|
+
action: review-threshold
|
|
45
|
+
needs:
|
|
46
|
+
- review
|
|
47
|
+
with:
|
|
48
|
+
review: review
|
|
49
|
+
severity: '{{inputs.severity}}'
|
|
50
|
+
minIssues: '{{inputs.minIssues}}'
|
|
51
|
+
output: reviewThreshold
|
|
52
|
+
|
|
53
|
+
branch:
|
|
54
|
+
action: git-branch
|
|
55
|
+
needs:
|
|
56
|
+
- threshold
|
|
57
|
+
if: '{{artifacts.reviewThreshold.matched}} == true'
|
|
58
|
+
with:
|
|
59
|
+
name: '{{inputs.branchPrefix}}{{inputs.pr}}'
|
|
60
|
+
force: true
|
|
61
|
+
output: branch
|
|
62
|
+
|
|
63
|
+
fix-issues:
|
|
64
|
+
agent: task/review-issue-fixer
|
|
65
|
+
needs:
|
|
66
|
+
- branch
|
|
67
|
+
- review
|
|
68
|
+
input: |
|
|
69
|
+
Fix actionable issues from this DRS review artifact for GitHub PR #{{inputs.pr}}.
|
|
70
|
+
|
|
71
|
+
Only fix findings at or above severity {{inputs.severity}} unless a lower-severity issue is directly required by such a fix.
|
|
72
|
+
|
|
73
|
+
Review artifact path: {{artifacts.persistedReviewArtifact.path}}
|
|
74
|
+
|
|
75
|
+
Use the read_artifact tool with this path to get the finding manifest, then pull full details for specific findings by id. Do not assume the review JSON is in this prompt — call the tool.
|
|
76
|
+
|
|
77
|
+
Current PR change source files (read these as needed):
|
|
78
|
+
{{artifacts.change.files}}
|
|
79
|
+
|
|
80
|
+
Use the drs_check tool after making changes to run configured validation checks before returning.
|
|
81
|
+
output: fixes
|
|
82
|
+
|
|
83
|
+
diff:
|
|
84
|
+
action: has-diff
|
|
85
|
+
needs:
|
|
86
|
+
- fix-issues
|
|
87
|
+
output: fixDiff
|
|
88
|
+
|
|
89
|
+
commit:
|
|
90
|
+
action: git-commit
|
|
91
|
+
needs:
|
|
92
|
+
- diff
|
|
93
|
+
if: '{{artifacts.fixDiff.changed}} == true'
|
|
94
|
+
with:
|
|
95
|
+
message: 'fix: address DRS review issues for PR #{{inputs.pr}}'
|
|
96
|
+
paths: '.'
|
|
97
|
+
output: commit
|
|
98
|
+
|
|
99
|
+
push:
|
|
100
|
+
action: git-push
|
|
101
|
+
needs:
|
|
102
|
+
- commit
|
|
103
|
+
with:
|
|
104
|
+
branch: '{{inputs.branchPrefix}}{{inputs.pr}}'
|
|
105
|
+
output: push
|
|
106
|
+
|
|
107
|
+
create:
|
|
108
|
+
action: create-change-request
|
|
109
|
+
needs:
|
|
110
|
+
- push
|
|
111
|
+
with:
|
|
112
|
+
platform: github
|
|
113
|
+
owner: '{{inputs.owner}}'
|
|
114
|
+
repo: '{{inputs.repo}}'
|
|
115
|
+
sourceBranch: '{{inputs.branchPrefix}}{{inputs.pr}}'
|
|
116
|
+
targetBranch: '{{artifacts.change.context.pullRequest.sourceBranch}}'
|
|
117
|
+
title: 'fix: address DRS review issues for PR #{{inputs.pr}}'
|
|
118
|
+
draft: '{{inputs.draft}}'
|
|
119
|
+
body: |
|
|
120
|
+
Automated DRS fix stacked on PR #{{inputs.pr}}.
|
|
121
|
+
|
|
122
|
+
Threshold: {{inputs.severity}}, minimum issues: {{inputs.minIssues}}
|
|
123
|
+
|
|
124
|
+
Review artifact: {{artifacts.persistedReviewArtifact.path}}
|
|
125
|
+
|
|
126
|
+
<!-- drs-stack-source: github:{{inputs.owner}}/{{inputs.repo}}#{{inputs.pr}} -->
|
|
127
|
+
<!-- drs-stack-kind: fix -->
|
|
128
|
+
output: changeRequest
|
|
129
|
+
|
|
130
|
+
post-fix-status:
|
|
131
|
+
action: post-fix-status
|
|
132
|
+
needs:
|
|
133
|
+
- create
|
|
134
|
+
- review
|
|
135
|
+
with:
|
|
136
|
+
platform: github
|
|
137
|
+
owner: '{{inputs.owner}}'
|
|
138
|
+
repo: '{{inputs.repo}}'
|
|
139
|
+
pr: '{{inputs.pr}}'
|
|
140
|
+
source: change
|
|
141
|
+
reviewArtifact: persistedReviewArtifact
|
|
142
|
+
severity: '{{inputs.severity}}'
|
|
143
|
+
stackedPrUrl: '{{artifacts.changeRequest.url}}'
|
|
144
|
+
marker: drs-fix-status
|
|
145
|
+
output: fixStatus
|
|
146
|
+
|
|
147
|
+
done:
|
|
148
|
+
control: end
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
name: github-pr-post-comment
|
|
2
2
|
description: Post or update a GitHub pull request comment
|
|
3
3
|
inputs:
|
|
4
|
-
owner:
|
|
5
|
-
repo:
|
|
6
|
-
pr:
|
|
7
|
-
body:
|
|
8
|
-
marker:
|
|
4
|
+
owner: ''
|
|
5
|
+
repo: ''
|
|
6
|
+
pr: ''
|
|
7
|
+
body: ''
|
|
8
|
+
marker: ''
|
|
9
9
|
nodes:
|
|
10
10
|
comment:
|
|
11
11
|
action: post-comment
|
|
12
|
-
input:
|
|
12
|
+
input: '{{inputs.body}}'
|
|
13
13
|
with:
|
|
14
14
|
platform: github
|
|
15
|
-
owner:
|
|
16
|
-
repo:
|
|
17
|
-
pr:
|
|
18
|
-
marker:
|
|
15
|
+
owner: '{{inputs.owner}}'
|
|
16
|
+
repo: '{{inputs.repo}}'
|
|
17
|
+
pr: '{{inputs.pr}}'
|
|
18
|
+
marker: '{{inputs.marker}}'
|
|
19
19
|
output: comment
|
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
name: github-pr-review-post
|
|
2
|
-
description:
|
|
2
|
+
description: Describe and review a GitHub pull request, posting the description and DRS comments
|
|
3
3
|
inputs:
|
|
4
|
-
owner:
|
|
5
|
-
repo:
|
|
6
|
-
pr:
|
|
4
|
+
owner: ''
|
|
5
|
+
repo: ''
|
|
6
|
+
pr: ''
|
|
7
|
+
output: review
|
|
7
8
|
nodes:
|
|
8
9
|
change:
|
|
9
10
|
action: change-source
|
|
10
11
|
with:
|
|
11
12
|
type: github-pr
|
|
12
|
-
owner:
|
|
13
|
-
repo:
|
|
14
|
-
pr:
|
|
13
|
+
owner: '{{inputs.owner}}'
|
|
14
|
+
repo: '{{inputs.repo}}'
|
|
15
|
+
pr: '{{inputs.pr}}'
|
|
15
16
|
output: change
|
|
16
17
|
|
|
18
|
+
describe:
|
|
19
|
+
action: describe
|
|
20
|
+
needs:
|
|
21
|
+
- change
|
|
22
|
+
with:
|
|
23
|
+
source: change
|
|
24
|
+
post: true
|
|
25
|
+
output: description
|
|
26
|
+
|
|
17
27
|
review:
|
|
18
28
|
action: review
|
|
19
29
|
needs:
|
|
20
|
-
-
|
|
30
|
+
- describe
|
|
21
31
|
with:
|
|
22
32
|
source: change
|
|
33
|
+
artifact: persistedReviewArtifact
|
|
23
34
|
output: review
|
|
24
35
|
|
|
25
36
|
post-comments:
|