fix(health-check): remove undefined RUN_LIMIT variable - #31
Merged
Merged
Conversation
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a runtime failure in the daily health-check script by removing a reference to an undefined shell variable in the Claude prompt heredoc, which previously caused set -euo pipefail to terminate the script with an “unbound variable” error.
Changes:
- Replace
${RUN_LIMIT}(undefined) with the literal100in the health-check analysis prompt to prevent unbound variable exits and match theper_page=100API fetch cap.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
don-petry
added a commit
that referenced
this pull request
May 17, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
May 17, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced May 17, 2026
don-petry
added a commit
that referenced
this pull request
Jun 7, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
Jun 7, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
Jun 8, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
Jun 12, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
Jun 14, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
Jun 18, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
Jun 25, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
don-petry
added a commit
that referenced
this pull request
Jun 25, 2026
The heredoc prompt referenced \${RUN_LIMIT} which was never defined,
causing the script to fail with "unbound variable" under set -u.
Replace with the literal 100 (matching the per_page=100 API call).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/pr_review_health.shreferenced${RUN_LIMIT}inside a heredoc, but the variable was never defined anywhere in the scriptset -euo pipefailactive, bash exits with "unbound variable" on line 140 every time the script reaches the Claude invocation${RUN_LIMIT}with the literal100, which matches theper_page=100used in the GitHub API call on line 58Test plan
100hardcoded🤖 Generated with Claude Code