Add API endpoints for resolver functionality
This is a draft of trying to implement the github resolution functionality in listen.py.
The main change in this PR is that it creates an API endpoint resolve_issue() in listen.py for calling the github resolver.
The input to this function is governed by the data model in openhands/server/data_models/issue_models.py.
One big question I have is that this endpoint could take 20 minutes to run, which isn't typically a good way to create an endpoint. Do you have a suggestion for the best practice in implementing this?
Any feedback is welcome (cc @rbren)!
NOTE: separately, running linting commands resulted in some unrelated fixing of linting issues...
To run this PR locally, use the following command:
docker run -it --rm -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock --add-host host.docker.internal:host-gateway -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:c088a08-nikolaik --name openhands-app-c088a08 docker.all-hands.dev/all-hands-ai/openhands:c088a08
New OpenHands update
The workflow to fix this issue encountered an error. Please check the workflow logs for more information.
New OpenHands update
The workflow to fix this issue encountered an error. Please check the workflow logs for more information.
I'm going to close because we've refactored "listen.py" and it'd be easier to start from scratch.