GitAuto: Feature Request: Enable GitAuto to feedback to the issuer if GitAuto wonders what to do (like human engineers) before moving forward #305
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #304
What is the feature
Enable GitAuto to provide feedback to the issue author by commenting on the issue when it lacks sufficient information to proceed. This feature allows GitAuto to request additional details or clarifications from the issuer, similar to how a human engineer would ask for more information before moving forward with a solution.
Why we need the feature
Currently, when GitAuto encounters an issue with vague or insufficient descriptions, it attempts to resolve it without proper guidance, often resulting in a failed pull request. By enabling GitAuto to communicate back to the issuer for clarification, we can:
How to implement and why
Implementation steps:
Create a Commenting Function:
services/issue_commenter.py
that allows GitAuto to post comments on issues.Integrate Function into Assistants:
main.py
or the relevant handler to detect when an issue lacks sufficient detail.Trigger Comment on Insufficient Issues:
Adjust Processing Flow:
Update Configuration Settings:
config.py
for managing comment templates and thresholds for insufficient content detection.Implement Error Handling:
Testing and Validation:
tests/
directory to verify the new functionality.Reasons for this implementation:
About backward compatibility
The proposed changes are backward compatible:
This approach ensures that the enhancement enhances GitAuto's capabilities without disrupting any existing functionality or requiring changes from the users' side.
Test these changes locally
Summary by Sourcery
Enable GitAuto to provide feedback to issue authors by commenting on issues that lack sufficient information, improving the success rate of pull requests and enhancing user interaction.
New Features:
Enhancements:
Tests: