fix: remove dead step and paginate comment listing

- Remove unused "Determine VSIX filename" step whose outputs were never consumed
- Replace listComments with github.paginate to handle PRs with 30+ comments
This commit is contained in:
Roo Code 2026-02-10 18:35:24 +00:00
parent 236deb5ffb
commit 273203e412

11
.github/pr-build.yml vendored
View file

@ -26,14 +26,6 @@ jobs:
- name: Build VSIX
run: pnpm vsix
- name: Determine VSIX filename
id: vsix
run: |
VSIX_FILE=$(ls bin/*.vsix | head -n1)
VSIX_NAME=$(basename "$VSIX_FILE")
echo "file=$VSIX_FILE" >> "$GITHUB_OUTPUT"
echo "name=$VSIX_NAME" >> "$GITHUB_OUTPUT"
- name: Upload Regular VSIX
uses: actions/upload-artifact@v4
with:
@ -118,10 +110,11 @@ jobs:
// Look for an existing comment from this workflow so we update
// instead of creating a new one on every push.
const marker = '### VSIX Build Artifacts';
const { data: comments } = await github.rest.issues.listComments({
const comments = await github.paginate(github.rest.issues.listComments, {
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
per_page: 100,
});
const existing = comments.find(