diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 602be5a..cd94a72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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') diff --git a/CHANGELOG.md b/CHANGELOG.md index 3811296..f9179f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index ef36a68..c043795 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. @@ -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 @@ -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 | @@ -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 @@ -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). diff --git a/action.yml b/action.yml index bff7726..8bee1a5 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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: diff --git a/examples/pr-comparison.yml b/examples/pr-comparison.yml index 66df370..a3cbf96 100644 --- a/examples/pr-comparison.yml +++ b/examples/pr-comparison.yml @@ -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' diff --git a/examples/review.yml b/examples/review.yml index 1372d18..915149d 100644 --- a/examples/review.yml +++ b/examples/review.yml @@ -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'