Skip to content

Read GITHUB_REF and GITHUB_REPOSITORY lazily in github.rkt#826

Merged
jackfirth merged 1 commit into
masterfrom
github-env-vars-lazy-820
Jul 15, 2026
Merged

Read GITHUB_REF and GITHUB_REPOSITORY lazily in github.rkt#826
jackfirth merged 1 commit into
masterfrom
github-env-vars-lazy-820

Conversation

@jackfirth

Copy link
Copy Markdown
Owner

Fixes #820. Turns the two module-level getenv constants into zero-argument functions so they're read lazily, letting tests drive refactoring-results->github-review by parameterizing current-environment-variables. Adds a test for the empty-results path (which needs no git shell-out).

🤖 Generated with Claude Code

Fixes #820. Turn the two module-level getenv constants into zero-argument
functions so tests can control them by parameterizing current-environment-variables.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview: https://resyntax.notjack.space/preview/826/

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Resyntax analyzed 1 file in this pull request and found no issues.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 96.176% (+0.05%) from 96.131% — github-env-vars-lazy-820 into master

@jackfirth
jackfirth merged commit 6bf9e6f into master Jul 15, 2026
12 checks passed
@jackfirth
jackfirth deleted the github-env-vars-lazy-820 branch July 15, 2026 00:20
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.

github.rkt reads GITHUB_REF and GITHUB_REPOSITORY at module level, which blocks testing it

2 participants