All-Hands-AI / openhands-resolver

A system that tries to resolve all issues on a github repo with OpenHands.
MIT License
85 stars 20 forks source link

Fix issue #133: Make openhands-solver workflow referencable #134

Closed openhands-agent closed 1 month ago

openhands-agent commented 1 month ago

This pull request fixes #133.

The issue has been successfully resolved. The AI agent made the following key changes to the workflow file:

  1. Added a workflow_call trigger with an issue_number input, allowing the workflow to be called from external repositories.
  2. Implemented a mechanism to set the ISSUE_NUMBER environment variable, which works for both direct triggers and workflow calls.
  3. Updated all references to the issue number to use the new ISSUE_NUMBER environment variable.

These changes allow the workflow to be called from an external repository using the provided YAML code, resolving the original 'workflow_call key is not defined' error. The workflow is now flexible enough to handle both direct issue triggers and calls from other workflows.

Automatic fix generated by OpenHands 🙌