diff --git a/.github/workflows/specassay.yml b/.github/workflows/specassay.yml index 3268003..d147694 100644 --- a/.github/workflows/specassay.yml +++ b/.github/workflows/specassay.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-python@v5 with: python-version: '3.12' @@ -18,7 +20,16 @@ jobs: run: bash .specify/extensions/specassay-check/scripts/check-traceability.sh - name: Thread Report if: github.event_name == 'pull_request' - run: python .specify/extensions/specassay-check/scripts/thread-report.py > thread-report.md || true + run: | + git show origin/${{ github.base_ref }}:trace-manifest.json > base-manifest.json || echo '{}' > base-manifest.json + git diff --name-only origin/${{ github.base_ref }}...HEAD > changed.txt + python3 .specify/extensions/specassay-check/scripts/thread-report.py \ + --base base-manifest.json --head trace-manifest.json \ + --changed-files changed.txt \ + --config .specify/extensions/specassay-check/specassay-check-config.yml \ + --pr-url ${{ github.event.pull_request.html_url }} \ + --head-sha ${{ github.event.pull_request.head.sha }} \ + --out thread-report.md - name: Post Thread Report if: github.event_name == 'pull_request' uses: actions/github-script@v7 diff --git a/PRD.md b/PRD.md index 3118ad2..55d4c53 100644 --- a/PRD.md +++ b/PRD.md @@ -1,3 +1,4 @@ # Insurance Java — Product Requirements ## Registry +