fix: support default repo in macos issue stores - #971
Merged
aaronjmars merged 1 commit intoAug 27, 2026
Merged
Conversation
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.
What
Make the issue-backed cron-state and health helpers work in their documented current-repository mode on macOS Bash 3.2.
Why
Both scripts initialized
REPO_ARGS=()and expanded"${REPO_ARGS[@]}"underset -u. The macOS system Bash treats that zero-element expansion as an unbound variable, so leavingGH_REPOunset aborted both helpers beforeghran:The existing state-store test even had to set a dummy
GH_REPOspecifically to avoid this failure. GitHub Actions uses a newer Bash, so production scheduling was not broken; the impact is local macOS operation and testing of the issue-backed self-heal path.Fix
gh issuecalls through a small helper that adds--repo "$GH_REPO"only when the override is present.gh issuenormally and letghresolve the current repository.GH_REPOexplicitly unset for both helpers.Verification
bash scripts/tests/test_state_store.sh—ALL PASS.bash scripts/tests/test_health_issue.sh—ALL PASS.bash -n scripts/state_store.sh scripts/health_issue.sh scripts/tests/test_state_store.sh scripts/tests/test_health_issue.sh— passed.git diff --check— passed.Mutation test on macOS Bash 3.2.57, reverting only the two source fixes while keeping the tests:
Restoring the source fixes returned both offline suites to
ALL PASS.