[ ] π Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR improves the handling of GitHub Actions failures in the sweepai/api.py file. The changes focus on enhancing the process of downloading and cleaning logs, improving user messages, and refining the creation of pull requests or logging of chat messages in response to failures.
Summary of Changes
Enhanced the logic for downloading and cleaning logs to identify common error patterns and suggest specific fixes in the user message. This makes the messages more actionable for the user.
Modified the stack_pr function call to include the user message in the request body. This ensures that the pull request created in response to the failure includes specific suggestions for fixing the issue.
Adjusted the ChatLogger initialization to include the user message in the data dictionary. This ensures that chat messages logged in response to the failure provide actionable advice for resolving the issue.
Refined the make_pr function call to ensure that the summary includes both the error logs and the user message. This makes the pull request more informative, providing both the raw logs for context and specific suggestions for resolving the failure.
These changes aim to provide a more effective and user-friendly response to GitHub Actions failures, aiding users in quickly identifying and resolving issues.
PR Feedback (click)
sweepai/api.py
file. The changes focus on enhancing the process of downloading and cleaning logs, improving user messages, and refining the creation of pull requests or logging of chat messages in response to failures.Summary of Changes
stack_pr
function call to include the user message in the request body. This ensures that the pull request created in response to the failure includes specific suggestions for fixing the issue.ChatLogger
initialization to include the user message in thedata
dictionary. This ensures that chat messages logged in response to the failure provide actionable advice for resolving the issue.make_pr
function call to ensure that the summary includes both the error logs and the user message. This makes the pull request more informative, providing both the raw logs for context and specific suggestions for resolving the failure.These changes aim to provide a more effective and user-friendly response to GitHub Actions failures, aiding users in quickly identifying and resolving issues.