@diff-review-system/drs 3.3.1 → 4.0.0-rc.4
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/task/agents-md-updater.md +24 -0
- package/.pi/agents/task/changelog-updater.md +29 -0
- package/.pi/agents/task/review-issue-fixer.md +25 -0
- package/.pi/workflows/github-pr-describe-post.yaml +24 -0
- package/.pi/workflows/github-pr-describe.yaml +23 -0
- package/.pi/workflows/github-pr-post-comment.yaml +19 -0
- package/.pi/workflows/github-pr-review-post.yaml +32 -0
- package/.pi/workflows/github-pr-review.yaml +23 -0
- package/.pi/workflows/github-pr-show-changes.yaml +25 -0
- package/.pi/workflows/gitlab-mr-describe-post.yaml +22 -0
- package/.pi/workflows/gitlab-mr-describe.yaml +21 -0
- package/.pi/workflows/gitlab-mr-post-comment.yaml +17 -0
- package/.pi/workflows/gitlab-mr-review-code-quality.yaml +31 -0
- package/.pi/workflows/gitlab-mr-review-post-code-quality.yaml +40 -0
- package/.pi/workflows/gitlab-mr-review-post.yaml +30 -0
- package/.pi/workflows/gitlab-mr-review.yaml +21 -0
- package/.pi/workflows/gitlab-mr-show-changes.yaml +23 -0
- package/.pi/workflows/local-changelog-update.yaml +23 -0
- package/.pi/workflows/local-fix-review-issues.yaml +42 -0
- package/.pi/workflows/local-review.yaml +17 -0
- package/.pi/workflows/local-staged-review.yaml +17 -0
- package/.pi/workflows/local-update-agents-md.yaml +24 -0
- package/.pi/workflows/tag-changelog-update.yaml +26 -0
- package/README.md +214 -101
- package/dist/ci/runner.d.ts.map +1 -1
- package/dist/ci/runner.js +7 -8
- package/dist/ci/runner.js.map +1 -1
- package/dist/cli/index.js +69 -341
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +25 -23
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/run-agent.d.ts +24 -0
- package/dist/cli/run-agent.d.ts.map +1 -0
- package/dist/cli/run-agent.js +139 -0
- package/dist/cli/run-agent.js.map +1 -0
- package/dist/cli/run-agent.test.d.ts +2 -0
- package/dist/cli/run-agent.test.d.ts.map +1 -0
- package/dist/cli/run-agent.test.js +204 -0
- package/dist/cli/run-agent.test.js.map +1 -0
- package/dist/cli/workflow.d.ts +51 -0
- package/dist/cli/workflow.d.ts.map +1 -0
- package/dist/cli/workflow.js +1229 -0
- package/dist/cli/workflow.js.map +1 -0
- package/dist/cli/workflow.test.d.ts +2 -0
- package/dist/cli/workflow.test.d.ts.map +1 -0
- package/dist/cli/workflow.test.js +1410 -0
- package/dist/cli/workflow.test.js.map +1 -0
- package/dist/lib/agent-id.d.ts +9 -0
- package/dist/lib/agent-id.d.ts.map +1 -0
- package/dist/lib/agent-id.js +32 -0
- package/dist/lib/agent-id.js.map +1 -0
- package/dist/lib/comment-formatter.d.ts +7 -1
- package/dist/lib/comment-formatter.d.ts.map +1 -1
- package/dist/lib/comment-formatter.js +42 -1
- package/dist/lib/comment-formatter.js.map +1 -1
- package/dist/lib/comment-formatter.test.js +33 -0
- package/dist/lib/comment-formatter.test.js.map +1 -1
- package/dist/lib/comment-manager.d.ts +4 -0
- package/dist/lib/comment-manager.d.ts.map +1 -1
- package/dist/lib/comment-manager.js +7 -1
- package/dist/lib/comment-manager.js.map +1 -1
- package/dist/lib/comment-poster.d.ts +2 -2
- package/dist/lib/comment-poster.d.ts.map +1 -1
- package/dist/lib/comment-poster.js +3 -3
- package/dist/lib/comment-poster.js.map +1 -1
- package/dist/lib/comment-poster.test.js +13 -3
- package/dist/lib/comment-poster.test.js.map +1 -1
- package/dist/lib/config-model-overrides.test.d.ts +0 -10
- package/dist/lib/config-model-overrides.test.d.ts.map +1 -1
- package/dist/lib/config-model-overrides.test.js +174 -210
- package/dist/lib/config-model-overrides.test.js.map +1 -1
- package/dist/lib/config.d.ts +111 -34
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +322 -83
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/config.test.js +282 -2
- package/dist/lib/config.test.js.map +1 -1
- package/dist/lib/context-loader.d.ts +4 -4
- package/dist/lib/context-loader.d.ts.map +1 -1
- package/dist/lib/context-loader.js +10 -7
- package/dist/lib/context-loader.js.map +1 -1
- package/dist/lib/context-loader.test.js +31 -26
- package/dist/lib/context-loader.test.js.map +1 -1
- package/dist/lib/description-executor.js +1 -1
- package/dist/lib/description-executor.js.map +1 -1
- package/dist/lib/description-executor.test.js +10 -3
- package/dist/lib/description-executor.test.js.map +1 -1
- package/dist/lib/diff-lines.d.ts +9 -0
- package/dist/lib/diff-lines.d.ts.map +1 -0
- package/dist/lib/diff-lines.js +32 -0
- package/dist/lib/diff-lines.js.map +1 -0
- package/dist/lib/diff-lines.test.d.ts +2 -0
- package/dist/lib/diff-lines.test.d.ts.map +1 -0
- package/dist/lib/diff-lines.test.js +13 -0
- package/dist/lib/diff-lines.test.js.map +1 -0
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/review-core.d.ts.map +1 -1
- package/dist/lib/review-core.js +22 -27
- package/dist/lib/review-core.js.map +1 -1
- package/dist/lib/review-core.test.js +37 -23
- package/dist/lib/review-core.test.js.map +1 -1
- package/dist/lib/review-orchestrator.d.ts.map +1 -1
- package/dist/lib/review-orchestrator.js +11 -8
- package/dist/lib/review-orchestrator.js.map +1 -1
- package/dist/lib/review-orchestrator.test.js +27 -6
- package/dist/lib/review-orchestrator.test.js.map +1 -1
- package/dist/lib/unified-review-executor.d.ts +0 -2
- package/dist/lib/unified-review-executor.d.ts.map +1 -1
- package/dist/lib/unified-review-executor.js +7 -13
- package/dist/lib/unified-review-executor.js.map +1 -1
- package/dist/lib/unified-review-executor.test.js +2 -2
- package/dist/lib/unified-review-executor.test.js.map +1 -1
- package/dist/pi/sdk.d.ts.map +1 -1
- package/dist/pi/sdk.js +36 -11
- package/dist/pi/sdk.js.map +1 -1
- package/dist/pi/sdk.test.js +48 -9
- package/dist/pi/sdk.test.js.map +1 -1
- package/dist/runtime/agent-loader.d.ts +10 -6
- package/dist/runtime/agent-loader.d.ts.map +1 -1
- package/dist/runtime/agent-loader.js +53 -27
- package/dist/runtime/agent-loader.js.map +1 -1
- package/dist/runtime/agent-loader.test.js +116 -119
- package/dist/runtime/agent-loader.test.js.map +1 -1
- package/dist/runtime/built-in-paths.d.ts +1 -0
- package/dist/runtime/built-in-paths.d.ts.map +1 -1
- package/dist/runtime/built-in-paths.js +7 -0
- package/dist/runtime/built-in-paths.js.map +1 -1
- package/dist/runtime/client.d.ts +12 -0
- package/dist/runtime/client.d.ts.map +1 -1
- package/dist/runtime/client.js +83 -58
- package/dist/runtime/client.js.map +1 -1
- package/dist/runtime/client.test.js +264 -15
- package/dist/runtime/client.test.js.map +1 -1
- package/dist/runtime/path-config.d.ts +2 -2
- package/dist/runtime/path-config.d.ts.map +1 -1
- package/dist/runtime/path-config.js +8 -8
- package/dist/runtime/path-config.js.map +1 -1
- package/dist/runtime/path-config.test.js +14 -14
- package/dist/runtime/path-config.test.js.map +1 -1
- package/package.json +3 -3
- package/.pi/agents/review/documentation.md +0 -56
- package/.pi/agents/review/performance.md +0 -53
- package/.pi/agents/review/quality.md +0 -59
- package/.pi/agents/review/security.md +0 -53
- package/.pi/agents/review/style.md +0 -132
- package/dist/cli/describe-mr.d.ts +0 -11
- package/dist/cli/describe-mr.d.ts.map +0 -1
- package/dist/cli/describe-mr.js +0 -134
- package/dist/cli/describe-mr.js.map +0 -1
- package/dist/cli/describe-pr.d.ts +0 -12
- package/dist/cli/describe-pr.d.ts.map +0 -1
- package/dist/cli/describe-pr.js +0 -135
- package/dist/cli/describe-pr.js.map +0 -1
- package/dist/cli/post-comments.d.ts +0 -20
- package/dist/cli/post-comments.d.ts.map +0 -1
- package/dist/cli/post-comments.js +0 -225
- package/dist/cli/post-comments.js.map +0 -1
- package/dist/cli/review-local.d.ts +0 -13
- package/dist/cli/review-local.d.ts.map +0 -1
- package/dist/cli/review-local.integration.test.d.ts +0 -2
- package/dist/cli/review-local.integration.test.d.ts.map +0 -1
- package/dist/cli/review-local.integration.test.js +0 -343
- package/dist/cli/review-local.integration.test.js.map +0 -1
- package/dist/cli/review-local.js +0 -90
- package/dist/cli/review-local.js.map +0 -1
- package/dist/cli/review-local.live.e2e.test.d.ts +0 -2
- package/dist/cli/review-local.live.e2e.test.d.ts.map +0 -1
- package/dist/cli/review-local.live.e2e.test.js +0 -153
- package/dist/cli/review-local.live.e2e.test.js.map +0 -1
- package/dist/cli/review-local.test.d.ts +0 -2
- package/dist/cli/review-local.test.d.ts.map +0 -1
- package/dist/cli/review-local.test.js +0 -164
- package/dist/cli/review-local.test.js.map +0 -1
- package/dist/cli/review-mr.d.ts +0 -22
- package/dist/cli/review-mr.d.ts.map +0 -1
- package/dist/cli/review-mr.js +0 -181
- package/dist/cli/review-mr.js.map +0 -1
- package/dist/cli/review-mr.test.d.ts +0 -2
- package/dist/cli/review-mr.test.d.ts.map +0 -1
- package/dist/cli/review-mr.test.js +0 -142
- package/dist/cli/review-mr.test.js.map +0 -1
- package/dist/cli/review-pr.d.ts +0 -22
- package/dist/cli/review-pr.d.ts.map +0 -1
- package/dist/cli/review-pr.js +0 -181
- package/dist/cli/review-pr.js.map +0 -1
- package/dist/cli/review-pr.test.d.ts +0 -2
- package/dist/cli/review-pr.test.d.ts.map +0 -1
- package/dist/cli/review-pr.test.js +0 -137
- package/dist/cli/review-pr.test.js.map +0 -1
- package/dist/cli/review-url.d.ts +0 -35
- package/dist/cli/review-url.d.ts.map +0 -1
- package/dist/cli/review-url.js +0 -110
- package/dist/cli/review-url.js.map +0 -1
- package/dist/cli/review-url.test.d.ts +0 -2
- package/dist/cli/review-url.test.d.ts.map +0 -1
- package/dist/cli/review-url.test.js +0 -132
- package/dist/cli/review-url.test.js.map +0 -1
- package/dist/cli/show-changes.d.ts +0 -15
- package/dist/cli/show-changes.d.ts.map +0 -1
- package/dist/cli/show-changes.js +0 -184
- package/dist/cli/show-changes.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Updates AGENTS.md or equivalent repository agent guidance
|
|
3
|
+
color: "#0891b2"
|
|
4
|
+
hidden: false
|
|
5
|
+
tools:
|
|
6
|
+
Read: true
|
|
7
|
+
Glob: true
|
|
8
|
+
Grep: true
|
|
9
|
+
Edit: true
|
|
10
|
+
Write: true
|
|
11
|
+
---
|
|
12
|
+
|
|
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
|
+
|
|
15
|
+
Read the existing guidance and the provided change source, then make only guidance updates that are justified by repository changes.
|
|
16
|
+
|
|
17
|
+
## Rules
|
|
18
|
+
|
|
19
|
+
- Preserve the file's existing tone, structure, and level of detail.
|
|
20
|
+
- Add concise instructions for new commands, architecture boundaries, workflow names, test requirements, or project conventions.
|
|
21
|
+
- Remove or update stale instructions when the change source clearly makes them incorrect.
|
|
22
|
+
- Do not add generic AI-agent advice that is not specific to this repository.
|
|
23
|
+
- Do not rewrite the whole file unless it is very small and clearly outdated.
|
|
24
|
+
- Return a concise summary of changed guidance and skipped areas.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Updates CHANGELOG.md from a workflow change source
|
|
3
|
+
color: "#7c3aed"
|
|
4
|
+
hidden: false
|
|
5
|
+
tools:
|
|
6
|
+
Read: true
|
|
7
|
+
Glob: true
|
|
8
|
+
Grep: true
|
|
9
|
+
Edit: true
|
|
10
|
+
Write: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
You update `CHANGELOG.md` for the provided workflow change source.
|
|
14
|
+
|
|
15
|
+
Read `CHANGELOG.md`, edit it in place, then return a concise summary of what changed. Do not return the full changelog content.
|
|
16
|
+
|
|
17
|
+
## Rules
|
|
18
|
+
|
|
19
|
+
- Preserve the existing changelog title, introduction, ordering, and Markdown style.
|
|
20
|
+
- Add or update a `## Unreleased` section directly above the latest released version when unreleased entries are needed.
|
|
21
|
+
- Do not invent a released version or date.
|
|
22
|
+
- Do not modify existing released sections unless correcting an obvious duplicate introduced by this update.
|
|
23
|
+
- Group entries under conventional headings such as `Added`, `Changed`, `Fixed`, `Removed`, `Security`, or `Documentation`.
|
|
24
|
+
- Prefer headings already used by the file when they fit.
|
|
25
|
+
- Write concise bullets in imperative style.
|
|
26
|
+
- Include only user-facing or maintainer-significant changes.
|
|
27
|
+
- Skip purely mechanical formatting, generated files, lockfile noise, and test-only changes unless they affect users or contributors.
|
|
28
|
+
- Avoid duplicate bullets if the changelog already mentions the same change.
|
|
29
|
+
- If there are no changelog-worthy changes, leave the file unchanged and say why.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Fixes actionable issues from a saved DRS review result
|
|
3
|
+
color: "#dc2626"
|
|
4
|
+
hidden: false
|
|
5
|
+
tools:
|
|
6
|
+
Read: true
|
|
7
|
+
Glob: true
|
|
8
|
+
Grep: true
|
|
9
|
+
Edit: true
|
|
10
|
+
Write: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
You fix actionable issues from a DRS review result.
|
|
14
|
+
|
|
15
|
+
The workflow provides review JSON or Markdown plus the current local change source. Read the affected files, make the smallest safe code changes, then return a concise summary of fixes and any issues intentionally left unresolved.
|
|
16
|
+
|
|
17
|
+
## Rules
|
|
18
|
+
|
|
19
|
+
- Prioritize `critical`, `high`, and concrete `medium` issues.
|
|
20
|
+
- Do not make speculative rewrites for vague, stylistic, or low-confidence findings.
|
|
21
|
+
- Preserve existing architecture, formatting, naming, and public behavior unless the review issue requires a behavior change.
|
|
22
|
+
- Keep changes minimal and localized to the issue.
|
|
23
|
+
- Do not update dependencies, generated files, or lockfiles unless directly necessary.
|
|
24
|
+
- If a finding cannot be reproduced or safely fixed, leave code unchanged for that finding and explain why.
|
|
25
|
+
- Do not commit changes.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: github-pr-describe-post
|
|
2
|
+
description: Generate and post a GitHub pull request description
|
|
3
|
+
inputs:
|
|
4
|
+
owner: ""
|
|
5
|
+
repo: ""
|
|
6
|
+
pr: ""
|
|
7
|
+
nodes:
|
|
8
|
+
change:
|
|
9
|
+
action: change-source
|
|
10
|
+
with:
|
|
11
|
+
type: github-pr
|
|
12
|
+
owner: "{{inputs.owner}}"
|
|
13
|
+
repo: "{{inputs.repo}}"
|
|
14
|
+
pr: "{{inputs.pr}}"
|
|
15
|
+
output: change
|
|
16
|
+
|
|
17
|
+
describe:
|
|
18
|
+
action: describe
|
|
19
|
+
needs:
|
|
20
|
+
- change
|
|
21
|
+
with:
|
|
22
|
+
source: change
|
|
23
|
+
post: true
|
|
24
|
+
output: description
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: github-pr-describe
|
|
2
|
+
description: Generate a GitHub pull request description
|
|
3
|
+
inputs:
|
|
4
|
+
owner: ""
|
|
5
|
+
repo: ""
|
|
6
|
+
pr: ""
|
|
7
|
+
nodes:
|
|
8
|
+
change:
|
|
9
|
+
action: change-source
|
|
10
|
+
with:
|
|
11
|
+
type: github-pr
|
|
12
|
+
owner: "{{inputs.owner}}"
|
|
13
|
+
repo: "{{inputs.repo}}"
|
|
14
|
+
pr: "{{inputs.pr}}"
|
|
15
|
+
output: change
|
|
16
|
+
|
|
17
|
+
describe:
|
|
18
|
+
action: describe
|
|
19
|
+
needs:
|
|
20
|
+
- change
|
|
21
|
+
with:
|
|
22
|
+
source: change
|
|
23
|
+
output: description
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: github-pr-post-comment
|
|
2
|
+
description: Post or update a GitHub pull request comment
|
|
3
|
+
inputs:
|
|
4
|
+
owner: ""
|
|
5
|
+
repo: ""
|
|
6
|
+
pr: ""
|
|
7
|
+
body: ""
|
|
8
|
+
marker: ""
|
|
9
|
+
nodes:
|
|
10
|
+
comment:
|
|
11
|
+
action: post-comment
|
|
12
|
+
input: "{{inputs.body}}"
|
|
13
|
+
with:
|
|
14
|
+
platform: github
|
|
15
|
+
owner: "{{inputs.owner}}"
|
|
16
|
+
repo: "{{inputs.repo}}"
|
|
17
|
+
pr: "{{inputs.pr}}"
|
|
18
|
+
marker: "{{inputs.marker}}"
|
|
19
|
+
output: comment
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: github-pr-review-post
|
|
2
|
+
description: Review a GitHub pull request and post DRS comments
|
|
3
|
+
inputs:
|
|
4
|
+
owner: ""
|
|
5
|
+
repo: ""
|
|
6
|
+
pr: ""
|
|
7
|
+
nodes:
|
|
8
|
+
change:
|
|
9
|
+
action: change-source
|
|
10
|
+
with:
|
|
11
|
+
type: github-pr
|
|
12
|
+
owner: "{{inputs.owner}}"
|
|
13
|
+
repo: "{{inputs.repo}}"
|
|
14
|
+
pr: "{{inputs.pr}}"
|
|
15
|
+
output: change
|
|
16
|
+
|
|
17
|
+
review:
|
|
18
|
+
action: review
|
|
19
|
+
needs:
|
|
20
|
+
- change
|
|
21
|
+
with:
|
|
22
|
+
source: change
|
|
23
|
+
output: review
|
|
24
|
+
|
|
25
|
+
post-comments:
|
|
26
|
+
action: post-review-comments
|
|
27
|
+
needs:
|
|
28
|
+
- review
|
|
29
|
+
with:
|
|
30
|
+
source: change
|
|
31
|
+
review: review
|
|
32
|
+
output: postedReview
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: github-pr-review
|
|
2
|
+
description: Review a GitHub pull request
|
|
3
|
+
inputs:
|
|
4
|
+
owner: ""
|
|
5
|
+
repo: ""
|
|
6
|
+
pr: ""
|
|
7
|
+
nodes:
|
|
8
|
+
change:
|
|
9
|
+
action: change-source
|
|
10
|
+
with:
|
|
11
|
+
type: github-pr
|
|
12
|
+
owner: "{{inputs.owner}}"
|
|
13
|
+
repo: "{{inputs.repo}}"
|
|
14
|
+
pr: "{{inputs.pr}}"
|
|
15
|
+
output: change
|
|
16
|
+
|
|
17
|
+
review:
|
|
18
|
+
action: review
|
|
19
|
+
needs:
|
|
20
|
+
- change
|
|
21
|
+
with:
|
|
22
|
+
source: change
|
|
23
|
+
output: review
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: github-pr-show-changes
|
|
2
|
+
description: Show the review context for a GitHub pull request
|
|
3
|
+
inputs:
|
|
4
|
+
owner: ""
|
|
5
|
+
repo: ""
|
|
6
|
+
pr: ""
|
|
7
|
+
file: ""
|
|
8
|
+
nodes:
|
|
9
|
+
change:
|
|
10
|
+
action: change-source
|
|
11
|
+
with:
|
|
12
|
+
type: github-pr
|
|
13
|
+
owner: "{{inputs.owner}}"
|
|
14
|
+
repo: "{{inputs.repo}}"
|
|
15
|
+
pr: "{{inputs.pr}}"
|
|
16
|
+
output: change
|
|
17
|
+
|
|
18
|
+
context:
|
|
19
|
+
action: review-context
|
|
20
|
+
needs:
|
|
21
|
+
- change
|
|
22
|
+
with:
|
|
23
|
+
source: change
|
|
24
|
+
file: "{{inputs.file}}"
|
|
25
|
+
output: reviewContext
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: gitlab-mr-describe-post
|
|
2
|
+
description: Generate and post a GitLab merge request description
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
nodes:
|
|
7
|
+
change:
|
|
8
|
+
action: change-source
|
|
9
|
+
with:
|
|
10
|
+
type: gitlab-mr
|
|
11
|
+
project: "{{inputs.project}}"
|
|
12
|
+
mr: "{{inputs.mr}}"
|
|
13
|
+
output: change
|
|
14
|
+
|
|
15
|
+
describe:
|
|
16
|
+
action: describe
|
|
17
|
+
needs:
|
|
18
|
+
- change
|
|
19
|
+
with:
|
|
20
|
+
source: change
|
|
21
|
+
post: true
|
|
22
|
+
output: description
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: gitlab-mr-describe
|
|
2
|
+
description: Generate a GitLab merge request description
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
nodes:
|
|
7
|
+
change:
|
|
8
|
+
action: change-source
|
|
9
|
+
with:
|
|
10
|
+
type: gitlab-mr
|
|
11
|
+
project: "{{inputs.project}}"
|
|
12
|
+
mr: "{{inputs.mr}}"
|
|
13
|
+
output: change
|
|
14
|
+
|
|
15
|
+
describe:
|
|
16
|
+
action: describe
|
|
17
|
+
needs:
|
|
18
|
+
- change
|
|
19
|
+
with:
|
|
20
|
+
source: change
|
|
21
|
+
output: description
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: gitlab-mr-post-comment
|
|
2
|
+
description: Post or update a GitLab merge request comment
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
body: ""
|
|
7
|
+
marker: ""
|
|
8
|
+
nodes:
|
|
9
|
+
comment:
|
|
10
|
+
action: post-comment
|
|
11
|
+
input: "{{inputs.body}}"
|
|
12
|
+
with:
|
|
13
|
+
platform: gitlab
|
|
14
|
+
project: "{{inputs.project}}"
|
|
15
|
+
mr: "{{inputs.mr}}"
|
|
16
|
+
marker: "{{inputs.marker}}"
|
|
17
|
+
output: comment
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: gitlab-mr-review-code-quality
|
|
2
|
+
description: Review a GitLab merge request and write a GitLab Code Quality report
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
codeQualityReport: gl-code-quality-report.json
|
|
7
|
+
nodes:
|
|
8
|
+
change:
|
|
9
|
+
action: change-source
|
|
10
|
+
with:
|
|
11
|
+
type: gitlab-mr
|
|
12
|
+
project: "{{inputs.project}}"
|
|
13
|
+
mr: "{{inputs.mr}}"
|
|
14
|
+
output: change
|
|
15
|
+
|
|
16
|
+
review:
|
|
17
|
+
action: review
|
|
18
|
+
needs:
|
|
19
|
+
- change
|
|
20
|
+
with:
|
|
21
|
+
source: change
|
|
22
|
+
output: review
|
|
23
|
+
|
|
24
|
+
code-quality:
|
|
25
|
+
action: code-quality-report
|
|
26
|
+
needs:
|
|
27
|
+
- review
|
|
28
|
+
with:
|
|
29
|
+
review: review
|
|
30
|
+
path: "{{inputs.codeQualityReport}}"
|
|
31
|
+
output: codeQualityReport
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: gitlab-mr-review-post-code-quality
|
|
2
|
+
description: Review a GitLab merge request, post DRS comments, and write a GitLab Code Quality report
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
codeQualityReport: gl-code-quality-report.json
|
|
7
|
+
nodes:
|
|
8
|
+
change:
|
|
9
|
+
action: change-source
|
|
10
|
+
with:
|
|
11
|
+
type: gitlab-mr
|
|
12
|
+
project: "{{inputs.project}}"
|
|
13
|
+
mr: "{{inputs.mr}}"
|
|
14
|
+
output: change
|
|
15
|
+
|
|
16
|
+
review:
|
|
17
|
+
action: review
|
|
18
|
+
needs:
|
|
19
|
+
- change
|
|
20
|
+
with:
|
|
21
|
+
source: change
|
|
22
|
+
output: review
|
|
23
|
+
|
|
24
|
+
post-comments:
|
|
25
|
+
action: post-review-comments
|
|
26
|
+
needs:
|
|
27
|
+
- review
|
|
28
|
+
with:
|
|
29
|
+
source: change
|
|
30
|
+
review: review
|
|
31
|
+
output: postedReview
|
|
32
|
+
|
|
33
|
+
code-quality:
|
|
34
|
+
action: code-quality-report
|
|
35
|
+
needs:
|
|
36
|
+
- review
|
|
37
|
+
with:
|
|
38
|
+
review: review
|
|
39
|
+
path: "{{inputs.codeQualityReport}}"
|
|
40
|
+
output: codeQualityReport
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: gitlab-mr-review-post
|
|
2
|
+
description: Review a GitLab merge request and post DRS comments
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
nodes:
|
|
7
|
+
change:
|
|
8
|
+
action: change-source
|
|
9
|
+
with:
|
|
10
|
+
type: gitlab-mr
|
|
11
|
+
project: "{{inputs.project}}"
|
|
12
|
+
mr: "{{inputs.mr}}"
|
|
13
|
+
output: change
|
|
14
|
+
|
|
15
|
+
review:
|
|
16
|
+
action: review
|
|
17
|
+
needs:
|
|
18
|
+
- change
|
|
19
|
+
with:
|
|
20
|
+
source: change
|
|
21
|
+
output: review
|
|
22
|
+
|
|
23
|
+
post-comments:
|
|
24
|
+
action: post-review-comments
|
|
25
|
+
needs:
|
|
26
|
+
- review
|
|
27
|
+
with:
|
|
28
|
+
source: change
|
|
29
|
+
review: review
|
|
30
|
+
output: postedReview
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: gitlab-mr-review
|
|
2
|
+
description: Review a GitLab merge request
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
nodes:
|
|
7
|
+
change:
|
|
8
|
+
action: change-source
|
|
9
|
+
with:
|
|
10
|
+
type: gitlab-mr
|
|
11
|
+
project: "{{inputs.project}}"
|
|
12
|
+
mr: "{{inputs.mr}}"
|
|
13
|
+
output: change
|
|
14
|
+
|
|
15
|
+
review:
|
|
16
|
+
action: review
|
|
17
|
+
needs:
|
|
18
|
+
- change
|
|
19
|
+
with:
|
|
20
|
+
source: change
|
|
21
|
+
output: review
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: gitlab-mr-show-changes
|
|
2
|
+
description: Show the review context for a GitLab merge request
|
|
3
|
+
inputs:
|
|
4
|
+
project: ""
|
|
5
|
+
mr: ""
|
|
6
|
+
file: ""
|
|
7
|
+
nodes:
|
|
8
|
+
change:
|
|
9
|
+
action: change-source
|
|
10
|
+
with:
|
|
11
|
+
type: gitlab-mr
|
|
12
|
+
project: "{{inputs.project}}"
|
|
13
|
+
mr: "{{inputs.mr}}"
|
|
14
|
+
output: change
|
|
15
|
+
|
|
16
|
+
context:
|
|
17
|
+
action: review-context
|
|
18
|
+
needs:
|
|
19
|
+
- change
|
|
20
|
+
with:
|
|
21
|
+
source: change
|
|
22
|
+
file: "{{inputs.file}}"
|
|
23
|
+
output: reviewContext
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: local-changelog-update
|
|
2
|
+
description: Update CHANGELOG.md from local unstaged changes
|
|
3
|
+
nodes:
|
|
4
|
+
change:
|
|
5
|
+
action: change-source
|
|
6
|
+
with:
|
|
7
|
+
type: local
|
|
8
|
+
staged: false
|
|
9
|
+
output: change
|
|
10
|
+
|
|
11
|
+
update-changelog:
|
|
12
|
+
agent: task/changelog-updater
|
|
13
|
+
needs:
|
|
14
|
+
- change
|
|
15
|
+
input: |
|
|
16
|
+
Update CHANGELOG.md for these local changes.
|
|
17
|
+
|
|
18
|
+
Read CHANGELOG.md yourself and edit it in place.
|
|
19
|
+
Do not return the full changelog content.
|
|
20
|
+
|
|
21
|
+
Local change source:
|
|
22
|
+
{{artifacts.change}}
|
|
23
|
+
output: changelog
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: local-fix-review-issues
|
|
2
|
+
description: Fix actionable issues from a saved DRS review result
|
|
3
|
+
inputs:
|
|
4
|
+
review: ""
|
|
5
|
+
nodes:
|
|
6
|
+
change:
|
|
7
|
+
action: change-source
|
|
8
|
+
with:
|
|
9
|
+
type: local
|
|
10
|
+
staged: false
|
|
11
|
+
output: change
|
|
12
|
+
|
|
13
|
+
fix-issues:
|
|
14
|
+
agent: task/review-issue-fixer
|
|
15
|
+
needs:
|
|
16
|
+
- change
|
|
17
|
+
input: |
|
|
18
|
+
Fix actionable issues from this DRS review result.
|
|
19
|
+
|
|
20
|
+
Review result:
|
|
21
|
+
{{inputs.review}}
|
|
22
|
+
|
|
23
|
+
Current local change source:
|
|
24
|
+
{{artifacts.change}}
|
|
25
|
+
output: fixes
|
|
26
|
+
|
|
27
|
+
final-change:
|
|
28
|
+
action: change-source
|
|
29
|
+
needs:
|
|
30
|
+
- fix-issues
|
|
31
|
+
with:
|
|
32
|
+
type: local
|
|
33
|
+
staged: false
|
|
34
|
+
output: finalChange
|
|
35
|
+
|
|
36
|
+
review:
|
|
37
|
+
action: review
|
|
38
|
+
needs:
|
|
39
|
+
- final-change
|
|
40
|
+
with:
|
|
41
|
+
source: finalChange
|
|
42
|
+
output: review
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: local-review
|
|
2
|
+
description: Review local unstaged git diff
|
|
3
|
+
nodes:
|
|
4
|
+
change:
|
|
5
|
+
action: change-source
|
|
6
|
+
with:
|
|
7
|
+
type: local
|
|
8
|
+
staged: false
|
|
9
|
+
output: change
|
|
10
|
+
|
|
11
|
+
review:
|
|
12
|
+
action: review
|
|
13
|
+
needs:
|
|
14
|
+
- change
|
|
15
|
+
with:
|
|
16
|
+
source: change
|
|
17
|
+
output: review
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: local-staged-review
|
|
2
|
+
description: Review local staged git diff
|
|
3
|
+
nodes:
|
|
4
|
+
change:
|
|
5
|
+
action: change-source
|
|
6
|
+
with:
|
|
7
|
+
type: local
|
|
8
|
+
staged: true
|
|
9
|
+
output: change
|
|
10
|
+
|
|
11
|
+
review:
|
|
12
|
+
action: review
|
|
13
|
+
needs:
|
|
14
|
+
- change
|
|
15
|
+
with:
|
|
16
|
+
source: change
|
|
17
|
+
output: review
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: local-update-agents-md
|
|
2
|
+
description: Update repository agent guidance from local changes
|
|
3
|
+
inputs:
|
|
4
|
+
path: ""
|
|
5
|
+
nodes:
|
|
6
|
+
change:
|
|
7
|
+
action: change-source
|
|
8
|
+
with:
|
|
9
|
+
type: local
|
|
10
|
+
staged: false
|
|
11
|
+
output: change
|
|
12
|
+
|
|
13
|
+
update-guidance:
|
|
14
|
+
agent: task/agents-md-updater
|
|
15
|
+
needs:
|
|
16
|
+
- change
|
|
17
|
+
input: |
|
|
18
|
+
Update repository coding-agent guidance for these local changes.
|
|
19
|
+
|
|
20
|
+
Preferred guidance path, if non-empty: {{inputs.path}}
|
|
21
|
+
|
|
22
|
+
Local change source:
|
|
23
|
+
{{artifacts.change}}
|
|
24
|
+
output: guidance
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: tag-changelog-update
|
|
2
|
+
description: Update CHANGELOG.md from changes between two git refs or tags
|
|
3
|
+
inputs:
|
|
4
|
+
from: ""
|
|
5
|
+
to: ""
|
|
6
|
+
nodes:
|
|
7
|
+
release-change:
|
|
8
|
+
action: change-source
|
|
9
|
+
with:
|
|
10
|
+
type: git-range
|
|
11
|
+
from: "{{inputs.from}}"
|
|
12
|
+
to: "{{inputs.to}}"
|
|
13
|
+
output: change
|
|
14
|
+
|
|
15
|
+
update-changelog:
|
|
16
|
+
agent: task/changelog-updater
|
|
17
|
+
needs:
|
|
18
|
+
- release-change
|
|
19
|
+
input: |
|
|
20
|
+
Update CHANGELOG.md for the release changes between {{inputs.from}} and {{inputs.to}}.
|
|
21
|
+
|
|
22
|
+
Use this git range change source as the authoritative release diff:
|
|
23
|
+
{{artifacts.change}}
|
|
24
|
+
|
|
25
|
+
If {{inputs.to}} is a release candidate tag, prepare changelog content for the upcoming final release without inventing a final release date.
|
|
26
|
+
output: changelog
|