refactor: Externalize configuration and update repository tracking#95
refactor: Externalize configuration and update repository tracking#95abuzarmahmood wants to merge 180 commits intomainfrom
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Generated edit command:
By implementing these changes, the TERMINATE Aider output: View Aider OutputThis response was automatically generated by blech_bot |
for more information, see https://pre-commit.ci
|
In response_agent.py, keep imports at top of file |
|
Applied changes based on comment: View Aider OutputThis response was automatically generated by blech_bot |
…e-sometimes-given-as-part-of-issues
…ctions to response_agent - Removed unused functions related to file modification and git operations in `bot_tools.py`. - Moved essential functions `get_tracked_repos` and `is_tool_related` from `bot_tools.py` to `response_agent.py`. - Updated `response_agent.py` to use the functions internally, removing dependency on `bot_tools.py` for these operations. - Added a cautionary comment in `bot_tools.py` for safe usage by agents.
…fficiency - Sanitized issue titles by removing punctuation and spaces, improving branch name prediction. - Replaced iteration over remote references with a more efficient `ls-remote` command to fetch heads. - Commented out the old remote branch checking logic for potential future reference.
- Modified import of BeautifulSoup: switched from `from bs4 import BeautifulSoup` to `import bs4` to address module usage issue. - Introduced `src_dir` and `base_dir` in `response_agent.py` to standardize path handling after recent project reorganization. This commit resolves import errors and enhances directory path management post-reorganization.
for more information, see https://pre-commit.ci
…-given-as-part-of-issues' of https://github.com/abuzarmahmood/blech_github_bot into 9-add-util-to-scrape-text-from-urls-which-are-sometimes-given-as-part-of-issues
- Removed `scrape_text_from_url` and `summarize_text` from `bot_tools.py` to streamline module responsibilities. - Transferred these functions to `response_agent.py` to consolidate scraping capabilities. - Updated function calls in `response_agent.py` to use the relocated local versions, ensuring seamless operation. - Cleaned up `agents.py` by removing outdated system messages related to URL scraping.
- Removed unused imports `requests` and `bs4` from `src/bot_tools.py`. - Added necessary imports `requests` and `bs4` to `src/response_agent.py`. - Removed duplicate definition of `extract_urls_from_issue` function in `src/response_agent.py`. - Cleaned up comments in `src/agents.py` by removing redundant lines about `read_merged_summary` and `read_merged_docstrings`.
…rom-urls-which-are-sometimes-given-as-part-of-issues 9 add util to scrape text from urls which are sometimes given as part of issues
changes to max turns and local repo handling
…t-on-every-run' of https://github.com/abuzarmahmood/blech_github_bot into 22-auto-update-blech_github_bot-by-pulling-latest-commit-on-every-run
- Initialize GitHub client and determine the default branch using the GitHub API. - Remove fallback mechanism for determining the default branch locally. - Introduce reading configuration from `params.json` to control auto-update behavior. - Modify bot initialization to conditionally update the repository based on `auto_update` parameter.
…rspy test: Add comprehensive unit tests for triggers.py module
…tests feat: Add code coverage reporting with pytest-cov and Codecov integration
…ead-of-truncating-pass-text-to-summary_agent feat: Implement intelligent text summarization using summary agent
- Removed duplicate "summary_agent" system message in `agents.py`. - Updated reference to "summary_agent" to "summary_assistant" in `response_agent.py` to ensure consistency and correct usage.
- Add installation of `setuptools` and `wheel` for improved package management. - Ensure dependencies are up-to-date for testing environment setup.
- The pytest and pytest-cov dependencies are removed from the workflow as they are presumably already included in the `requirements.txt` file.
- Removed version constraints for pytest and pytest-cov in requirements.txt to allow installation of the latest compatible versions.
- Added `numpy==1.18.2` to the `requirements.txt` file to manage numpy as a dependency for the project.
- Updated the `actions/checkout` action from version 2 to 4. - Updated the `actions/setup-python` action from version 2 to 5. - Ensures compatibility with newer GitHub Actions features and security updates.
- Removed specific version pinning for numpy to allow flexibility in version upgrades.
- Added `aider_install.sh` for streamlined installation using `aider-install`. - Removed `aider-chat` and `numpy` from `requirements.txt` as they are no longer necessary.
- Changed `make install-deps` to `make install` in the GitHub Actions workflow to properly install dependencies before running tests.
- Removed push event trigger for branches and limited it to pull requests only. - Simplified the workflow configuration by removing unnecessary branch filters.
- Renamed `run_response_agent.sh` and updated the virtual environment activation logic. - Commented out code handling directory change and echo statement for debugging. - Adjusted paths in `triggers.py` for module import efficiency. - Standardized import ordering in `triggers.py`. - Commented out unnecessary path adjustments in `test_triggers.py`. - Created an `__init__.py` for the tests directory to facilitate module discovery.
- Added missing import statement for `os` and `sys`, ensuring compliance with style guidelines. - Removed duplicate appendix of `sys.path` entry to avoid redundancy.
feat(setup): simplify installation process with aider-install script - Added `aider_install.sh` for streamlined installation using `aider-install`. - Removed `aider-chat` and `numpy` from `requirements.txt` as they are no longer necessary. build: add Makefile for project installation and management Move commands from aider_intall to Makefile chore: update workflow to use makefile for dependency installation fix(ci): correct make command for installing dependencies - Changed `make install-deps` to `make install` in the GitHub Actions workflow to properly install dependencies before running tests.
….com/abuzarmahmood/blech_github_bot into 93-put-llm_config-in-a-separate-file
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #95 +/- ##
=======================================
Coverage ? 42.08%
=======================================
Files ? 4
Lines ? 575
Branches ? 65
=======================================
Hits ? 242
Misses ? 331
Partials ? 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.