Skip to content

Add opt-in PR comparisons and pinned onboarding - #2

Merged
EhsanAzish80 merged 2 commits into
mainfrom
pr-comparison
Dec 4, 2026
Merged

EhsanAzish80 merged 2 commits into
mainfrom
pr-comparison

Conversation

@EhsanAzish80

Copy link
Copy Markdown
Owner

With compare: 'true', the Action now compares the event's exact base/head commits and includes the resulting metric deltas and changed review areas in its job summary and existing bot comment. A comparison-report output exposes the Markdown file to later steps. Comparisons default off and are skipped outside PRs; absolute threshold gates retain their existing behavior.

Because compare is not released on PyPI, devscope-ref accepts a full commit SHA from the upstream Devscope repository. The copyable workflow pins a merged compare-capable CLI commit and this integration's code commit, with full-history PR-head checkout. The README covers permissions, missing history, root-only comparison, outputs, truncation and release availability. Source and Action tags remain unchanged.

Validation: four Python tests for exact refs/report transport, partial-report prevention, subdirectory and invalid-ref rejection; six Node tests for comment create/update, literal content, normal reports, read-only tokens, API errors and size limits; existing shell integration checks pass. Actionlint passes on the CI and example workflows. CI additionally exercises the actual comparison and pinned CLI on Ubuntu, macOS and Windows.

Related CLI onboarding PR will provide a tested read-only summary-only workflow.

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Devscope Report

Heuristic grade: A
Risk: Low
Onboarding: Easy
Scan time: 0.011872053146362305s

Devscope: A · Low risk · Easy onboarding

Devscope PR comparison

Merge base ee711970e3a18ea07430ca9027f862af4311239c → head 48fb93a2fb0721af572c5e9041bf3ace7e7e8890

Metric Base Head Delta
Files 12 17 +5
Lines 1176 1541 +365
Test Files 0 1 +1
Source Files 0 1 +1

Changed review areas

No changed review areas detected.

Advisory heuristics, not defect predictions or code coverage. Committed snapshots only; git activity, symlinks, submodules and export-ignored files are excluded.

@EhsanAzish80
EhsanAzish80 merged commit 10369d7 into main Dec 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant