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
26 changes: 15 additions & 11 deletions .github/workflows/example-advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,33 @@ jobs:

- name: Run Devscope
id: devscope
uses: EhsanAzish80/devscope-action@v1
uses: EhsanAzish80/devscope-action@v1.3.0
with:
devscope-version: '0.3.0'
# Optional absolute gate; start with advisory review before choosing policy.
fail-under: B
max-risk: Medium
max-onboarding: Moderate

- name: Report metrics
run: |
echo "### 📊 Code Health Metrics" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **Grade:** ${{ steps.devscope.outputs.grade }}" >> $GITHUB_STEP_SUMMARY
echo "- **Risk:** ${{ steps.devscope.outputs.risk }}" >> $GITHUB_STEP_SUMMARY
echo "- **Onboarding:** ${{ steps.devscope.outputs.onboarding }}" >> $GITHUB_STEP_SUMMARY
echo "- **Health Score:** ${{ steps.devscope.outputs.health }}/100" >> $GITHUB_STEP_SUMMARY
{
echo "### 📊 Code Health Metrics"
echo ""
echo "- **Grade:** ${{ steps.devscope.outputs.grade }}"
echo "- **Risk:** ${{ steps.devscope.outputs.risk }}"
echo "- **Onboarding:** ${{ steps.devscope.outputs.onboarding }}"
echo "- **Health Score:** ${{ steps.devscope.outputs.health }}/100"
} >> "$GITHUB_STEP_SUMMARY"

notify:
name: Notify on Grade Change
name: Inspect a Low Heuristic Grade
needs: health-check
runs-on: ubuntu-latest
if: needs.health-check.outputs.grade == 'F'
if: always() && needs.health-check.outputs.grade == 'F'

steps:
- name: Alert on critical health
run: |
echo "::error::Code health is critical (Grade: F)"
echo "Immediate action required to improve maintainability"
echo "Heuristic grade F: inspect the component scores and project policy"
echo "The grade is a review signal, not proof of defects"
4 changes: 3 additions & 1 deletion .github/workflows/example-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
fetch-depth: 0 # Full history for accurate git metrics

- name: Run Devscope
uses: EhsanAzish80/devscope-action@v1
uses: EhsanAzish80/devscope-action@v1.3.0
with:
devscope-version: '0.3.0'
# Optional absolute gate; start with advisory review before choosing policy.
fail-under: B
max-risk: Medium
14 changes: 9 additions & 5 deletions .github/workflows/example-monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,23 @@ jobs:
fetch-depth: 0

- name: Analyze ${{ matrix.service }}
uses: EhsanAzish80/devscope-action@v1
uses: EhsanAzish80/devscope-action@v1.3.0
id: devscope
with:
path: ./services/${{ matrix.service }}
devscope-version: '0.3.0'
# Optional absolute gate; start with advisory review before choosing policy.
fail-under: C
max-risk: High

- name: Report ${{ matrix.service }} metrics
run: |
echo "## ${{ matrix.service }}" >> $GITHUB_STEP_SUMMARY
echo "Grade: ${{ steps.devscope.outputs.grade }}" >> $GITHUB_STEP_SUMMARY
echo "Risk: ${{ steps.devscope.outputs.risk }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
{
echo "## ${{ matrix.service }}"
echo "Grade: ${{ steps.devscope.outputs.grade }}"
echo "Risk: ${{ steps.devscope.outputs.risk }}"
echo ""
} >> "$GITHUB_STEP_SUMMARY"

aggregate:
name: Aggregate Results
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
name: Test Devscope Action
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

Expand Down Expand Up @@ -89,7 +90,6 @@ jobs:
id: comparison
with:
compare: 'true'
devscope-ref: d9849fddd644f98a67985115af74c74ff0a5230e

- name: Verify comparison report
if: github.event_name == 'pull_request'
Expand All @@ -105,7 +105,6 @@ jobs:
with:
review: 'true'
fail-on-new: 'true'
devscope-ref: 68c1fa668de53f71920e263bbb1f2325cb5f44d0

- name: Verify advanced reports and real CLI regression gate
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -133,6 +132,20 @@ jobs:
assert json.loads(output.read_text(encoding='utf-8'))['new_warnings'] == 1
PY

- name: Verify published CLI first-run demo
shell: bash
run: |
python - <<'PY'
import json, os, pathlib, subprocess
env = {**os.environ, 'PYTHONIOENCODING': 'ascii'}
result = subprocess.run(['devscope', 'demo'], check=True, capture_output=True, text=True, encoding='ascii', env=env)
assert 'Synthetic sample' in result.stdout and 'billing/service.py' in result.stdout
data = json.loads(subprocess.check_output(['devscope', 'demo', '--format', 'json'], text=True))
assert data['demo'] is True
subprocess.run(['devscope', 'demo', '--format', 'html', '--output', 'first-run-demo.html'], check=True)
assert 'SYNTHETIC DEMO' in pathlib.Path('first-run-demo.html').read_text(encoding='utf-8')
PY

- name: Report test results
if: always()
shell: bash
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Development: advanced review
# 1.3.0 — 2026-12-04

- Opt-in review checklists, history evidence and package scopes.
- New-warning gates that retain reports before failing.
- Coverage input and exact-head provenance assertion.
- HTML/JSON/Markdown artifacts and structured outputs.
- Validated review options, bounded summaries and cross-platform integration tests.
- Development default CLI version moves to published 0.2.0; advanced review uses a source pin until 0.3.0 is released.
- CLI 0.3.0 is the default; examples use released packages and versioned Action tags.
- Advisory-first visual onboarding, actual screenshots and readable scan-time formatting.
- Published-package CI covers the guided demo, including ASCII-only consoles.

## 1.2.0 — 2026-12-04

Expand Down
Loading
Loading