Skip to content

feat(open-pr-comments): Golang Language Support #93402

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
merged 6 commits into from
Jun 17, 2025

Conversation

iamrajjoshi
Copy link
Member

@iamrajjoshi iamrajjoshi commented Jun 12, 2025

Support for a Golang for Open PR Comments

Co-authored by Cursor

@iamrajjoshi iamrajjoshi self-assigned this Jun 12, 2025
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 12, 2025
@iamrajjoshi iamrajjoshi changed the title feat(open-pr-comments): Golang Lenguage Support feat(open-pr-comments): Golang Language Support Jun 12, 2025
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93402      +/-   ##
==========================================
+ Coverage   87.99%   88.03%   +0.03%     
==========================================
  Files       10286    10308      +22     
  Lines      593098   594496    +1398     
  Branches    23028    23028              
==========================================
+ Hits       521896   523349    +1453     
+ Misses      70770    70715      -55     
  Partials      432      432              

@iamrajjoshi iamrajjoshi marked this pull request as ready for review June 12, 2025 15:58
@iamrajjoshi iamrajjoshi requested review from a team as code owners June 12, 2025 15:58
@giortzisg giortzisg self-requested a review June 12, 2025 17:30
"""

# Regular function declarations (including generics)
function_declaration_regex = r"^@@.*@@[^=]*?\s*func\s+(?P<fnc>\w+)(?:\[[^\]]*\])?\s*\("
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I think you need a \s* within the non captured group for generics because it's legal to have a white space between the function name and the generics.

@iamrajjoshi iamrajjoshi merged commit 27e722b into master Jun 17, 2025
64 checks passed
@iamrajjoshi iamrajjoshi deleted the cursor/add-support-for-a-go-language-parser-22b2 branch June 17, 2025 13:31
billyvg pushed a commit that referenced this pull request Jun 18, 2025
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants