Skip to content

Small cleanup in x/config/cli - #2469

Open
nolag wants to merge 2 commits into
mainfrom
rtinianov_cli_profiles_post_merge_feedback
Open

nolag wants to merge 2 commits into
mainfrom
rtinianov_cli_profiles_post_merge_feedback

Conversation

@nolag

@nolag nolag commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

from PR comments I read after merging

Copilot AI 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.

🟢 Approval recommended

The focused refactors preserve existing behavior, with no unresolved findings.

0 open findings

What changed in this PR

Cleans up CLI profile handling following the profiles feature introduced in #2456.

Changes:

  • Replaces pairwise case-collision checks with canonical Unicode folding and map lookups.
  • Introduces separate iterators for profile maps and values.
  • Narrows panic recovery to selector callbacks and simplifies scope checks.
File Description
x/​config/​cli/​profile.go Refactors profile validation, traversal, and selector handling.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

📊 API Diff Results

No changes detected for module github.com/smartcontractkit/chainlink-common

View full report

@nolag
nolag marked this pull request as ready for review October 14, 2026 20:25
@nolag
nolag requested a review from a team as a code owner October 14, 2026 20:25
@nolag
nolag enabled auto-merge October 14, 2026 20:25

This branch has not been deployed

No deployments
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.

3 participants