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 #146: Before running workflows, check to make sure that all environment variables are set #147

Closed openhands-agent closed 1 month ago

openhands-agent commented 1 month ago

This pull request fixes #146.

This PR addresses the issue by adding a check for required environment variables in both .github/workflows/openhands-resolver.yml and .github/workflows/openhands-resolver-experimental.yml files. A new step called 'Check required environment variables' has been added to both workflow files. This step verifies the presence of GITHUB_TOKEN, LLM_MODEL, LLM_API_KEY, LLM_BASE_URL, PAT_TOKEN, and PAT_USERNAME environment variables. If any of these variables are not set, the workflow will fail immediately with an error message. This ensures that all necessary environment variables are properly configured before proceeding with any additional workflow steps, thus resolving the issue as described.

Automatic fix generated by OpenHands 🙌