bartbot / sweep

Sweep: AI-powered Junior Developer for small features and bug fixes.
https://sweep.dev
GNU Affero General Public License v3.0
0 stars 0 forks source link

Improve Handling of GitHub Actions Failures #70

Open sweep-ai[bot] opened 7 months ago

sweep-ai[bot] commented 7 months ago

PR Feedback (click)

Summary of Changes

  1. 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.
  2. 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.
  3. 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.
  4. 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.

sweep-ai[bot] commented 7 months ago

Rollback Files For Sweep