OpenCSGs / csghub-server

csghub-server is the backend server for CSGHub which helps user to manage datasets, modes, and also run Model Inference, Finetune and Application Spaces.
https://opencsg.com/models
Apache License 2.0
556 stars 98 forks source link

Fix ssh clone url when ssh domain has port #182

Closed pulltheflower closed 1 day ago

pulltheflower commented 1 day ago

MR Summary:

The summary is added by @codegpt.

This Merge Request addresses the issue of generating SSH clone URLs when the SSH domain includes a port. It modifies the logic for building SSH clone URLs to correctly handle domains with ports, ensuring the URL format is consistent and correct regardless of whether the domain contains a port. Key updates include:

  1. Adjusting the buildSSHCloneURL function to check for a port in the SSH domain and format the URL accordingly.
  2. Adding a test case to verify the correct SSH clone URL is generated when the SSH domain includes a port.
starship-github[bot] commented 1 day ago

MR Evaluation:

This feature is still under test, evaluation are given by AI and might be inaccurate.

After evaluation, the code changes in the Merge Request get score: 100.

Tips ### CodeReview Commands (invoked as MR or PR comments) - `@codegpt /review` to trigger an code review. - `@codegpt /evaluate` to trigger code evaluation process. - `@codegpt /describe` to regenerate the summary of the MR. - `@codegpt /secscan` to scan security vulnerabilities for the MR or the Repository. - `@codegpt /help` to get help. ### CodeReview Discussion Chat There are 2 ways to chat with [Starship CodeReview]( https://starship.opencsg.com): - Review comments: Directly reply to a review comment made by StarShip. Example: - `@codegpt How to fix this bug?` - Files and specific lines of code (under the "Files changed" tab): Tag `@codegpt` in a new review comment at the desired location with your query. Examples: - `@codegpt generate unit testing code for this code snippet.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the MR/PR comments. ### CodeReview Documentation and Community - Visit our [Documentation](https://opencsg.com/docs/StarShip/codereview/) for detailed information on how to use Starship CodeReview.

About Us:

Visit the OpenCSG StarShip website for the Dashboard and detailed information on CodeReview, CodeGen, and other StarShip modules.

starship-github[bot] commented 1 day ago

The StarShip CodeReviewer was triggered but terminated because it encountered an issue: The MR state is not opened.

Tips ### CodeReview Commands (invoked as MR or PR comments) - `@codegpt /review` to trigger an code review. - `@codegpt /evaluate` to trigger code evaluation process. - `@codegpt /describe` to regenerate the summary of the MR. - `@codegpt /secscan` to scan security vulnerabilities for the MR or the Repository. - `@codegpt /help` to get help. ### CodeReview Discussion Chat There are 2 ways to chat with [Starship CodeReview]( https://starship.opencsg.com): - Review comments: Directly reply to a review comment made by StarShip. Example: - `@codegpt How to fix this bug?` - Files and specific lines of code (under the "Files changed" tab): Tag `@codegpt` in a new review comment at the desired location with your query. Examples: - `@codegpt generate unit testing code for this code snippet.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the MR/PR comments. ### CodeReview Documentation and Community - Visit our [Documentation](https://opencsg.com/docs/StarShip/codereview/) for detailed information on how to use Starship CodeReview.