Skip to content

Make repositories read environment keys consistently - #194

Open
draarivpatel-ui wants to merge 1 commit into
HBNetwork:masterfrom
draarivpatel-ui:fix-repository-environ-access
Open

draarivpatel-ui wants to merge 1 commit into
HBNetwork:masterfrom
draarivpatel-ui:fix-repository-environ-access

Conversation

@draarivpatel-ui

Copy link
Copy Markdown

The repository classes report keys from os.environ through __contains__, but direct access through __getitem__ only reads the repository file or secrets data. This makes membership and lookup inconsistent for environment-only keys.

Return environment values from repository lookup before falling back to repository data, matching the existing precedence used by Config, and cover the behavior for env, ini, and secrets repositories.

Fixes #176

Copilot AI balanced review requested due to automatic review settings November 25, 2026 20:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

Repository does not actually contain os.environ values

2 participants