Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
data = json.loads(pathlib.Path(os.environ['JSON_REPORT']).read_text(encoding='utf-8'))
assert data['kind'] == 'review' and data['new_warnings'] == 0
assert os.environ['NEW_WARNINGS'] == '0'
assert 'Filter files and evidence' in html and 'History-aware hotspots' in html
assert 'Filter files and evidence' in html and 'All configured findings' in html
fixture = pathlib.Path('test-repo').resolve()
base = subprocess.check_output(['git', '-C', str(fixture), 'rev-parse', 'HEAD'], text=True).strip()
(fixture / 'regression.py').write_text('pass\n' * 501, encoding='utf-8')
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 1.4.0 — 2026-12-05

- Uses Devscope CLI 0.4.1 by default, including the corrected `--fail-on-new` process exit code.
- Removes predictive language from review guidance; Git history is presented as
factual context after the preregistered model and co-change claims failed.
- Keeps configured-warning and coverage gates separate, explicit and opt-in.

# 1.3.0 — 2026-12-04

- Opt-in review checklists, history evidence and package scopes.
Expand Down
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

**Give reviewers a useful place to start.**

Add an evidence-led checklist to each PR: changed files, history, co-change
signals and optional patch coverage. Share an updated comment plus offline
Add an evidence-led checklist to each PR: changed files, co-change facts and
optional patch coverage. Share an updated comment plus offline
HTML, JSON and Markdown reports. Start advisory; choose blocking gates later.

Devscope makes no predictive risk claim. Its preregistered evaluation could not
beat ranking by file size, so CLI 0.4.0 removes model scores and presents Git
history only as inspectable context. [Read the negative result](https://github.com/EhsanAzish80/Devscope/blob/main/docs/negative-result.md).

[![Tests](https://github.com/EhsanAzish80/devscope-action/actions/workflows/test.yml/badge.svg)](https://github.com/EhsanAzish80/devscope-action/actions/workflows/test.yml)

![Actual Devscope report on the integration PR](https://raw.githubusercontent.com/EhsanAzish80/Devscope/main/docs/assets/pr-comment.jpg)
Expand All @@ -32,13 +36,13 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: EhsanAzish80/devscope-action@v1.3.0
- uses: EhsanAzish80/devscope-action@v1.4.0
with:
review: 'true'
devscope-version: '0.3.0'
devscope-version: '0.4.1'
```

Action 1.3.0 uses CLI 0.3.0 by default; the explicit version keeps your workflow
Action 1.4.0 uses CLI 0.4.1 by default; the explicit version keeps your workflow
reproducible. `@v1` follows the latest compatible Action release. Prefer the
versioned tag when you want deliberate upgrades.

Expand All @@ -57,7 +61,7 @@ For a job summary with no comment permission, use the [CLI-only workflow](https:

![Offline demo report; all sample data is synthetic](https://raw.githubusercontent.com/EhsanAzish80/Devscope/main/docs/assets/html-report.jpg)

[Download the labelled sample HTML](https://github.com/EhsanAzish80/Devscope/releases/download/v0.3.0/devscope-demo.html)
[Download the labelled sample HTML](https://github.com/EhsanAzish80/Devscope/releases/download/v0.4.0/devscope-demo.html)

## Enable a new-warning gate when ready

Expand Down Expand Up @@ -94,7 +98,7 @@ when the report records absolute paths from another machine.
| `path` | `.` | Directory to scan; review/compare require the repository root |
| `review` | `false` | PR checklist, history evidence and report artifacts |
| `compare` | `false` | Compact PR count comparison; review supersedes it when both are enabled |
| `devscope-version` | `0.3.0` | Published CLI package version |
| `devscope-version` | `0.4.1` | Published CLI package version |
| `devscope-ref` | unset | Advanced override: full upstream CLI commit SHA |
| `fail-on-new` | `false` | Block new configured review warnings; requires review mode |
| `package` | unset | Repository-relative package scope; requires review mode |
Expand All @@ -121,6 +125,9 @@ setup instead of producing a default grade.
| `new-warnings` | New warning count, empty outside review mode |
| `health`, `grade`, `risk`, `onboarding` | Working-tree heuristic summary fields |

The legacy `risk` health label is a static code-health heuristic for compatibility;
it is not a defect probability or the removed history model.

Reports are available to later steps in the same job; advanced artifacts are
retained for 7 days. Long comments/summaries point to complete report files.
Reviews use committed snapshots; working-tree health metrics can also include
Expand All @@ -138,7 +145,7 @@ node --test tests/comment.test.cjs
```

CI tests the published CLI on Ubuntu, macOS and Windows, including artifacts,
permissive gates, a real regression gate and the first-run demo. CLI 0.3.0 and
Action 1.3.0 replace the source pins needed during development.
permissive gates, a real regression gate and the first-run demo. CLI 0.4.1 and
Action 1.4.0 replace the source pins needed during development.

MIT licensed. See [LICENSE](LICENSE).
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:
devscope-version:
description: 'PyPI version of devscope to install'
required: false
default: '0.3.0'
default: '0.4.1'
devscope-ref:
description: 'Optional full commit SHA from EhsanAzish80/Devscope; overrides devscope-version'
required: false
Expand All @@ -40,7 +40,7 @@ inputs:
required: false
default: 'false'
review:
description: 'Enable history-aware review guidance and HTML/JSON artifacts on pull requests (CLI 0.3.0+)'
description: 'Enable factual review guidance and HTML/JSON artifacts on pull requests (CLI 0.4.1+)'
required: false
default: 'false'
fail-on-new:
Expand Down
4 changes: 2 additions & 2 deletions examples/pr-comparison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: EhsanAzish80/devscope-action@v1.3.0
- uses: EhsanAzish80/devscope-action@v1.4.0
with:
compare: 'true'
devscope-version: '0.3.0'
devscope-version: '0.4.1'
4 changes: 2 additions & 2 deletions examples/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: EhsanAzish80/devscope-action@v1.3.0
- uses: EhsanAzish80/devscope-action@v1.4.0
with:
review: 'true'
devscope-version: '0.3.0'
devscope-version: '0.4.1'
Loading