Skip to content
Merged
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
10 changes: 5 additions & 5 deletions .github/workflows/doc-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '20'
node-version: '22'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify all doc-drift workflows use the same Node.js major version.
rg -n -C2 "node-version|pi-coding-agent@0\.79\.6" .github/workflows tests/workflows

Repository: TRocket-Labs/vectorlint

Length of output: 1758


🏁 Script executed:

#!/bin/bash
sed -n '1,120p' tests/workflows/docs-drift-test.yml | cat -n

Repository: TRocket-Labs/vectorlint

Length of output: 3911


Update tests/workflows/docs-drift-test.yml to Node.js 22. tests/workflows/docs-drift-test.yml still pins Node.js 20, so the manual doc-drift path runs on a different runtime than .github/workflows/doc-drift.yml.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/doc-drift.yml at line 111, Update the Node.js version pin
in tests/workflows/docs-drift-test.yml from 20 to 22 so the manual
documentation-drift workflow matches the runtime configured in the doc-drift
workflow.


- name: Install Pi
run: npm install -g @earendil-works/pi-coding-agent@0.79.6
Expand All @@ -121,7 +121,7 @@ jobs:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
DIFF_PATH="$GITHUB_WORKSPACE/pr/.doc-drift-input.diff"
gh pr diff ${{ github.event.issue.number }} > "$DIFF_PATH"
gh pr diff --repo ${{ github.repository }} ${{ github.event.issue.number }} > "$DIFF_PATH"
echo "Diff size: $(wc -l < "$DIFF_PATH") lines"

- name: Build agent message
Expand Down Expand Up @@ -168,11 +168,11 @@ jobs:
run: |
REPORT_FILES=$(ls "$GITHUB_WORKSPACE"/pr/.doc-drift-*.md 2>/dev/null | sort -V)
if [ -z "$REPORT_FILES" ]; then
gh pr comment ${{ github.event.issue.number }} \
gh pr comment --repo ${{ github.repository }} ${{ github.event.issue.number }} \
--body "Doc drift check completed but produced no output. Check the [Actions log](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details."
else
for file in $REPORT_FILES; do
gh pr comment ${{ github.event.issue.number }} --body-file "$file"
gh pr comment --repo ${{ github.repository }} ${{ github.event.issue.number }} --body-file "$file"
done
fi

Expand All @@ -181,5 +181,5 @@ jobs:
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
gh pr comment ${{ github.event.issue.number }} \
gh pr comment --repo ${{ github.repository }} ${{ github.event.issue.number }} \
--body "Doc drift check failed. Check the [Actions log](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details."
Loading