Skip to content

fix(ci): spell-check .changes only when the checkout has it - #8980

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/typos-paths-missing-changes
Oct 22, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/typos-paths-missing-changes

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Refs: #8723

Summary

Release PR #8747 fails lint-repo on the typos check. No word is misspelled. #8723 changed the Spell-check paths to . .changes, the release branch consumes every changelog fragment so it has no .changes directory, and typos stops with "argument .changes is not found" (exit 64). Every release PR rebuilt since #8723 fails this way.

Fix

In .github/workflows/pr-require-checks.yml, a new step before Spell-check outputs the paths: . .changes when .changes/ exists in the checkout, . otherwise. Spell-check reads its paths input from that output. Everything else on the step is unchanged.

Verification

  • Failing case: run 39704014888, lint-repo job on chore(release): release 50 plugins #8747 logs argument .changes is not found and Process completed with exit code 64.
  • Local reproduction (typos 1.51.1, same config and excludes). On the extracted release/plugins tree, . .changes exits 64 and the guarded value . exits 0. On this branch, which has .changes/, both . .changes and the guarded value exit 0.
  • actionlint .github/workflows/pr-require-checks.yml: clean.
  • zizmor --offline .github/workflows/pr-require-checks.yml: no findings.
  • scripts/check-affected.sh: 8 passed, 5 skipped, exit 0.

Related

🤖 Generated with Claude Code

The release branch consumes every changelog fragment, so it has no
.changes directory and typos exits 64 on the missing path argument.
Resolve the paths in a step before Spell-check: `. .changes` when the
directory exists, `.` otherwise.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 22, 2026 02:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T02:16:19.565045Z 7dd5af1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7dd5af182a81d693cc0ceb59112fbdc2140a5cb5: 0 finding(s), 0 as inline comments.

No security findings. The PR changes one file, .github/workflows/pr-require-checks.yml. It adds a step that picks the spell-check paths: . .changes if .changes exists, otherwise .. The step writes only one of two fixed literals to $GITHUB_OUTPUT, based on a local directory test. No PR-controlled text reaches the shell or the output, so there is no expression-injection or output-injection path. The typos action's pin, continue-on-error and with: inputs are unchanged apart from paths. The new paths value comes from the step output, which can only be one of the two literals. No permissions:, trigger or pin changes. No manifests or standing instructions are touched, so the manifest and instruction-surface checks do not apply.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 7dd5af182a81d693cc0ceb59112fbdc2140a5cb5: 0 finding(s), 0 as inline comments.

No findings. I reviewed the whole one-file diff to .github/workflows/pr-require-checks.yml.

  • Fix: The new Resolve spell-check paths step runs in the same job as Spell-check, after checkout, so [[ -d .changes ]] tests the checked-out tree. It passes . .changes when the directory exists and . otherwise. That keeps the old behavior on branches with fragments and removes the exit-64 failure on the release branch.
  • Interface: The space-separated paths value is the same shape the action already received, so the interface doesn't change. The step has no untrusted input and no ${{ }} interpolation inside run:, so it adds no injection surface.
  • Closing issue: None. The PR uses Refs: #8723, so there are no acceptance criteria to check.
  • Manifests and rules: The diff touches no plugin manifest, and no .claude/rules file matches it.
  • Not run: I did not re-run typos, actionlint or zizmor. The PR's verification claims (typos exit codes, actionlint clean, zizmor clean, check-affected) are the author's and unverified by me.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 22, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 22, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 42eb824 Oct 22, 2026
93 of 94 checks passed
@kyle-sexton
kyle-sexton deleted the fix/typos-paths-missing-changes branch October 22, 2026 03:34
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