You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: make parser domain-agnostic to support multiple Git hosts
- added list of known domains/Git hosts in `query_parser.py`
- fixed bug from [coderamp-labs#115](coderamp-labs#115): corrected case handling for URL components—scheme, domain, username, and repository are case-insensitive, but paths beyond (e.g., file names, branches) are case-sensitive
- implemented `try_domains_for_user_and_repo` in `query_parser.py` to iteratively guess the correct domain until success or supported hosts are exhausted
- added helper functions `_get_user_and_repo_from_path`, `_validate_host`, and `_validate_scheme` in `query_parser.py`
- extended `_parse_repo_source` in `query_parser.py` to be Git host agnostic by using `try_domains_for_user_and_repo`
- added tests `test_parse_url_unsupported_host` and `test_parse_query_with_branch` in `test_query_parser.py`
- created new file `test_git_host_agnostic.py` to verify domain/Git host agnostic behavior
-**Easy code context**: Get a text digest from a git repository URL or a directory
20
+
-**Easy code context**: Get a text digest from a Git repository URL or a directory
21
21
-**Smart Formatting**: Optimized output format for LLM prompts
22
22
-**Statistics about**:
23
23
- File and directory structure
@@ -36,11 +36,12 @@ pip install gitingest
36
36
37
37
<!-- markdownlint-disable MD033 -->
38
38
<ahref="https://chromewebstore.google.com/detail/adfjahbijlkjfoicpjkhjicpjpjfaood"target="_blank"title="Get Gitingest Extension from Chrome Web Store"><imgheight="48"src="https://github.com/user-attachments/assets/20a6e44b-fd46-4e6c-8ea6-aad436035753"alt="Available in the Chrome Web Store" /></a>
39
-
<ahref="https://addons.mozilla.org/firefox/addon/gitingest/"target="_blank"title="Get Gitingest Extension from Firefox Add-ons"><imgheight="48"src="https://github.com/user-attachments/assets/c0e99e6b-97cf-4af2-9737-099db7d3538b"alt="Get The Add-on for Firefox" /></a>
39
+
<ahref="https://addons.mozilla.org/firefox/addon/gitingest"target="_blank"title="Get Gitingest Extension from Firefox Add-ons"><imgheight="48"src="https://github.com/user-attachments/assets/c0e99e6b-97cf-4af2-9737-099db7d3538b"alt="Get The Add-on for Firefox" /></a>
40
40
<ahref="https://microsoftedge.microsoft.com/addons/detail/nfobhllgcekbmpifkjlopfdfdmljmipf"target="_blank"title="Get Gitingest Extension from Firefox Add-ons"><imgheight="48"src="https://github.com/user-attachments/assets/204157eb-4cae-4c0e-b2cb-db514419fd9e"alt="Get from the Edge Add-ons" /></a>
41
41
<!-- markdownlint-enable MD033 -->
42
42
43
43
The extension is open source at [lcandy2/gitingest-extension](https://github.com/lcandy2/gitingest-extension).
44
+
44
45
Issues and feature requests are welcome to the repo.
Check out the NPM alternative 📦 Repomix: <https://github.com/yamadashy/repomix>
110
111
111
112
## ✔️ Contributing to Gitingest
112
113
113
-
Gitingest aims to be friendly for first time contributors, with a simple python and html codebase.
114
-
If you need any help while working with the code, reach out to us on [discord](https://discord.com/invite/zerRaGK9EC)
114
+
Gitingest aims to be friendly for first time contributors, with a simple python and html codebase. If you need any help while working with the code, reach out to us on [Discord](https://discord.com/invite/zerRaGK9EC).
115
115
116
116
### Ways to help (non-technical)
117
117
@@ -125,7 +125,7 @@ Gitingest aims to be friendly for first time contributors, with a simple python
125
125
2. Setup the dev environment (see Development section bellow)
126
126
3. Run unit tests with `pytest`
127
127
4. Commit your changes and run `pre-commit`
128
-
5. Open a pull request on Github for review and feedback
128
+
5. Open a pull request on GitHub for review and feedback
129
129
6. (Optionnal) Invite project maintainer to your branch for easier collaboration
130
130
131
131
## 🔧 Development
@@ -161,7 +161,7 @@ Gitingest aims to be friendly for first time contributors, with a simple python
161
161
pytest
162
162
```
163
163
164
-
The application should be available at `http://localhost:8000`
164
+
The application should be available at `http://localhost:8000`.
0 commit comments