-
Notifications
You must be signed in to change notification settings - Fork 472
refactor(workflow): rename same-name/different-semantics helpers to eliminate navigation confusion #44149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+28
−28
Merged
refactor(workflow): rename same-name/different-semantics helpers to eliminate navigation confusion #44149
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0bbc815
Initial plan
Copilot 5c148a3
refactor: rename same-name/different-semantics helpers to avoid confu…
Copilot 80640b5
Merge remote-tracking branch 'origin/main' into copilot/refactor-sema…
Copilot 164dd59
chore: merge main and recompile workflows
Copilot ade02bd
wip: plan for addressing review threads
Copilot 19c0297
refactor: address review feedback — rename helpers for consistency an…
Copilot 255e5a2
Merge remote-tracking branch 'origin/main' into copilot/refactor-sema…
Copilot d2a9af6
Apply remaining changes
Copilot ee01991
Merge remote-tracking branch 'origin/main' into copilot/refactor-sema…
Copilot 7ec831a
chore: merge main and recompile workflows
Copilot 5607ad3
Merge remote-tracking branch 'origin/main' into copilot/refactor-sema…
Copilot 5890c9e
Merge branch 'main' into copilot/refactor-semantic-function-clustering
pelikhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -359,7 +359,7 @@ func TestPlaywrightConfigParsing(t *testing.T) { | |
| }) | ||
| } | ||
|
|
||
| func TestExtractToolsFromFrontmatter(t *testing.T) { | ||
| func TestExtractToolsMapFromFrontmatter(t *testing.T) { | ||
| frontmatter := map[string]any{ | ||
| "tools": map[string]any{ | ||
| "github": nil, | ||
|
|
@@ -370,7 +370,7 @@ func TestExtractToolsFromFrontmatter(t *testing.T) { | |
| }, | ||
| } | ||
|
|
||
| result := extractToolsFromFrontmatter(frontmatter) | ||
| result := extractToolsMapFromFrontmatter(frontmatter) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in the latest commit — renamed to |
||
|
|
||
| if len(result) != 2 { | ||
| t.Errorf("expected 2 tools, got %d", len(result)) | ||
|
|
@@ -390,7 +390,7 @@ func TestExtractToolsFromFrontmatter(t *testing.T) { | |
| } | ||
| } | ||
|
|
||
| func TestExtractMCPServersFromFrontmatter(t *testing.T) { | ||
| func TestExtractMCPServersMapFromFrontmatter(t *testing.T) { | ||
| frontmatter := map[string]any{ | ||
| "tools": map[string]any{ | ||
| "github": nil, | ||
|
|
@@ -401,7 +401,7 @@ func TestExtractMCPServersFromFrontmatter(t *testing.T) { | |
| }, | ||
| } | ||
|
|
||
| result := extractMCPServersFromFrontmatter(frontmatter) | ||
| result := extractMCPServersMapFromFrontmatter(frontmatter) | ||
|
|
||
| if len(result) != 2 { | ||
| t.Errorf("expected 2 MCP servers, got %d", len(result)) | ||
|
|
@@ -421,7 +421,7 @@ func TestExtractMCPServersFromFrontmatter(t *testing.T) { | |
| } | ||
| } | ||
|
|
||
| func TestExtractRuntimesFromFrontmatter(t *testing.T) { | ||
| func TestExtractRuntimesMapFromFrontmatter(t *testing.T) { | ||
| frontmatter := map[string]any{ | ||
| "tools": map[string]any{ | ||
| "github": nil, | ||
|
|
@@ -432,7 +432,7 @@ func TestExtractRuntimesFromFrontmatter(t *testing.T) { | |
| }, | ||
| } | ||
|
|
||
| result := extractRuntimesFromFrontmatter(frontmatter) | ||
| result := extractRuntimesMapFromFrontmatter(frontmatter) | ||
|
|
||
| if len(result) != 2 { | ||
| t.Errorf("expected 2 runtimes, got %d", len(result)) | ||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...Mapsuffix is inconsistent with the two sibling helpers it's supposed to align with:extractMCPServersFromFrontmatterandextractRuntimesFromFrontmatterboth returnmap[string]anyand both delegate toExtractMapField— yet neither uses the...Mapsuffix.💡 Details
The PR description justifies the new name:
But those siblings don't use the
...Mapsuffix:The rename has created asymmetry rather than resolved it. Either all three should carry
...Mapor none should. If the goal is purely to avoid collision withparser.extractToolsFromFrontmatter, the comment on the function is a better place to note the distinction than embedding implementation detail in the name.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied
...Mapto both siblings as well:extractMCPServersFromFrontmatter→extractMCPServersMapFromFrontmatterandextractRuntimesFromFrontmatter→extractRuntimesMapFromFrontmatter. All three helpers in the group now carry the suffix consistently.