forked from cyclotruc/gitingest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add quick suggestions for include/exclude patterns
Related to cyclotruc#44 Add quick suggestions feature to easily amend include/exclude parameters. * **In `src/gitingest/ingest_from_query.py`**: - Add `generate_suggestions` function to analyze repository and identify common file patterns. - Implement `check_relevance` function to check the relevance of each suggestion. - Add `sort_suggestions` function to sort suggestions based on the number of files or total lines affected. * **In `src/gitingest/cli.py`**: - Add new `--suggestions` option to display quick suggestions for include/exclude patterns. - Update `main` function to include suggestions in the output. * **In `src/gitingest/parse_query.py`**: - Add `normalize_user_added_patterns` function to normalize user-added patterns. - Add `check_user_added_matches_suggestions` function to check if user-added patterns match any suggestions. * **In `src/gitingest/tests/test_ingest.py`**: - Add tests for `generate_suggestions`, `check_relevance`, and `sort_suggestions` functions. * **In `src/static/js/utils.js`**: - Add `toggleSuggestion` function to handle adding/removing suggestions by clicking. - Add `displaySuggestions` function to display suggestions in the web interface. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/cyclotruc/gitingest/issues/44?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
030c004
commit 1a4f221
Showing
5 changed files
with
123 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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