Open harperreed opened 5 days ago
Traceback (most recent call last):
File "/app/sweepai/handlers/on_ticket.py", line 167, in on_ticket
await fix_ci_failures(pull_request, tracking_id)
File "/app/sweepai/handlers/fix_ci.py", line 266, in fix_ci_failures
new_pull_request_number = results["pull_request"].get("number")
AttributeError: 'NoneType' object has no attribute 'get'
'NoneType' object has no attribute 'get'
Sweep has encountered a runtime error unrelated to your request. Please let us know via this link or at support@sweep.dev directly.
:book: For more information on how to use Sweep, please read our documentation.
Improve TestCreatePost in internal/git/operations_test.go
Description:
Enhance the TestCreatePost function in the
internal/git/operations_test.go
file to provide more robust and comprehensive testing for the CreatePost operation.Tasks:
Update
internal/git/operations_test.go
:Add new test cases:
Test:
Additional Tasks:
internal/git/operations.go
file if necessary to reflect any changes in the CreatePost function's behavior or expectations