Skip to content

add allow and ignore patterns options#72

Merged
HaiHui886 merged 3 commits intomainfrom
file-filter
Mar 31, 2025
Merged

add allow and ignore patterns options#72
HaiHui886 merged 3 commits intomainfrom
file-filter

Conversation

@HaiHui886
Copy link
Collaborator

@HaiHui886 HaiHui886 commented Mar 31, 2025

fix #67 : support files filter

MR Summary:

The summary is added by @codegpt.

The MR introduces new options to filter files in the 'pycsghub' Python package. Key updates include:

  1. Added 'allow_patterns' and 'ignore_patterns' options in 'cli.py' and 'repo.py' files. These options allow users to specify patterns for files to be downloaded or ignored.
  2. The 'download' function in both files has been updated to accept these new options.
  3. The package version in 'setup.py' has been updated from '0.4.7' to '0.4.8'.

- add allow_patterns option for downloads
- add ignore_patterns option for downloads
- update README with new usage examples
- update Chinese README with new usage examples
Removed debug print statement for allow_patterns.
- Update version number in setup.py
@starship-github
Copy link

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: 67.

Analysis for the evaluation score:
  • The code change may not have preprocessed security related exceptions.
  • The code change may not include corresponding unit tests.
  • The code change may not include corresponding integration testing.
  • The code change may not include the corresponding user manual.
  • The code change may not include the corresponding development documentation.
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:

  • 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
    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.

Copy link

@pulltheflower pulltheflower left a comment

Choose a reason for hiding this comment

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

LGTM

@HaiHui886 HaiHui886 merged commit fa54028 into main Mar 31, 2025
@starship-github
Copy link

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:

  • 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
    for detailed information on how to use Starship CodeReview.

@HaiHui886 HaiHui886 deleted the file-filter branch May 23, 2025 01:55
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.

should support download model exclude some files

3 participants