python -m pip install -r requirements.txtFor testing purposes, use:
python -m pip install -r requirements-dev.txtCopy explain_pr/config.py.sample to explain_pr/config.py, and fill the settings (explained inside the file).
The first time install the pre commit hooks using:
pre-commit installThen, it will run automatically when commiting changes.
## Run
```bash
python main.py <owner> <repository> <pull_request_id>
example (public repository):
python main.py kartones fg-viewer 24example (public repository, multiple commits editing at least one file two times):
python main.py kartones bazel-gazelle-sample-web-extension 6To run all tests:
python -m pytestTo run a specific test class:
python -m pytest explain_pr/test/unit/adapters/test_adjusted_pr_for_llm.pyTo run a specific unit test:
python -m pytest explain_pr/test/unit/adapters/test_adjusted_pr_for_llm.py::TestAdjustedPullRequestForLlm::test_adjust_patch_data_size_with_pr_smaller_than_limit