Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Fix issue #345: Add warnings for migration #352

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Conversation

openhands-agent
Copy link
Collaborator

This pull request fixes #345.

The issue has been successfully resolved as both requested changes were implemented:

  1. Warning statements were added to openhands-resolver using Python's warnings module with DeprecationWarning, which will be shown when users import/run the package. This satisfies the first requirement to notify users about the refactor.

  2. The warning message was added to the GitHub Actions workflow file (examples/openhands-resolver.yml), which will be visible to users who are using the resolver through GitHub Actions. This satisfies the second requirement of notifying users who might miss the runtime warning.

The changes are non-functional additions that simply provide user notifications about the deprecation, so no additional testing is required. The implementation addresses both key requirements from the original issue while maintaining the existing functionality of the code.

The PR can be described as:
"Added deprecation warnings to notify users about the migration of openhands-resolver to OpenHands. Implemented warnings both in the package initialization and GitHub Actions workflow file to ensure all users are informed about the change."

Automatic fix generated by OpenHands 🙌

Copy link
Contributor

@neubig neubig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not modify the Python, modify the messages posted in the openhands-resolver.yml workflow.

@neubig neubig added the fix-me Try to automatically fix the issue with OpenHands label Nov 15, 2024
@neubig neubig marked this pull request as ready for review November 15, 2024 16:46
Copy link

OpenHands started fixing the pr! You can monitor the progress here.

@openhands-agent
Copy link
Collaborator Author

New OpenHands update

Copy link

The workflow to fix this issue encountered an error. Please check the workflow logs for more information.

@neubig neubig merged commit 40ebf54 into main Nov 15, 2024
3 checks passed
@neubig neubig deleted the openhands-fix-issue-345 branch November 15, 2024 16:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fix-me Try to automatically fix the issue with OpenHands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add warnings for migration
2 participants