[ ] 👎 Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR introduces a new module gha_log_handler.py in the sweepai/handlers/ directory. This module contains a GHALogHandler class responsible for fetching, parsing, and diagnosing issues from GitHub Actions logs.
The call_on_check_suite function in sweepai/api.py has been modified to initiate the GHA log handling process if the check suite fails.
A new test file gha_log_handler_test.py has been added under sweepai/tests/ to write unit tests for the GHALogHandler class.
Summary of Changes
Created sweepai/handlers/gha_log_handler.py to handle GitHub Actions logs.
Modified sweepai/api.py to initiate log handling when a GitHub Action fails.
Created sweepai/tests/gha_log_handler_test.py to test the GHALogHandler class.
These changes aim to enhance the project's ability to diagnose and handle GitHub Actions failures.
PR Feedback (click)
gha_log_handler.py
in thesweepai/handlers/
directory. This module contains aGHALogHandler
class responsible for fetching, parsing, and diagnosing issues from GitHub Actions logs.The
call_on_check_suite
function insweepai/api.py
has been modified to initiate the GHA log handling process if the check suite fails.A new test file
gha_log_handler_test.py
has been added undersweepai/tests/
to write unit tests for theGHALogHandler
class.Summary of Changes
sweepai/handlers/gha_log_handler.py
to handle GitHub Actions logs.sweepai/api.py
to initiate log handling when a GitHub Action fails.sweepai/tests/gha_log_handler_test.py
to test theGHALogHandler
class.These changes aim to enhance the project's ability to diagnose and handle GitHub Actions failures.