diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index b008e0e..6ebb053 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -138,7 +138,7 @@ jobs: issue_number: ${{ env.ISSUE_NUMBER }}, owner: context.repo.owner, repo: context.repo.repo, - body: `OpenHands started fixing the ${issueType}! You can monitor the progress [here](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}).` + body: `OpenHands started fixing the ${issueType}! You can monitor the progress [here](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}).\n\n> ALERT: message from your friendly neighborhood code agent -> this is an old version of the OpenHands github resolver. It has been moved to https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/resolver` }); - name: Install dependencies @@ -244,27 +244,27 @@ jobs: issue_number: issueNumber, owner: context.repo.owner, repo: context.repo.repo, - body: `The workflow to fix this issue encountered an error. Openhands failed to create any code changes.` + body: `The workflow to fix this issue encountered an error. Openhands failed to create any code changes.\n\n> ALERT: message from your friendly neighborhood code agent -> this is an old version of the OpenHands github resolver. It has been moved to https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/resolver` }); } else if (success && prNumber) { github.rest.issues.createComment({ issue_number: issueNumber, owner: context.repo.owner, repo: context.repo.repo, - body: `A potential fix has been generated and a draft PR #${prNumber} has been created. Please review the changes.` + body: `A potential fix has been generated and a draft PR #${prNumber} has been created. Please review the changes.\n\n> ALERT: message from your friendly neighborhood code agent -> this is an old version of the OpenHands github resolver. It has been moved to https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/resolver` }); } else if (!success && branchName) { github.rest.issues.createComment({ issue_number: issueNumber, owner: context.repo.owner, repo: context.repo.repo, - body: `An attempt was made to automatically fix this issue, but it was unsuccessful. A branch named '${branchName}' has been created with the attempted changes. You can view the branch [here](https://github.com/${context.repo.owner}/${context.repo.repo}/tree/${branchName}). Manual intervention may be required.` + body: `An attempt was made to automatically fix this issue, but it was unsuccessful. A branch named '${branchName}' has been created with the attempted changes. You can view the branch [here](https://github.com/${context.repo.owner}/${context.repo.repo}/tree/${branchName}). Manual intervention may be required.\n\n> ALERT: message from your friendly neighborhood code agent -> this is an old version of the OpenHands github resolver. It has been moved to https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/resolver` }); } else { github.rest.issues.createComment({ issue_number: issueNumber, owner: context.repo.owner, repo: context.repo.repo, - body: `The workflow to fix this issue encountered an error. Please check the workflow logs for more information.` + body: `The workflow to fix this issue encountered an error. Please check the workflow logs for more information.\n\n> ALERT: message from your friendly neighborhood code agent -> this is an old version of the OpenHands github resolver. It has been moved to https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/resolver` }); } diff --git a/examples/openhands-resolver.yml b/examples/openhands-resolver.yml index a891a56..3959e80 100644 --- a/examples/openhands-resolver.yml +++ b/examples/openhands-resolver.yml @@ -1,5 +1,7 @@ name: Resolve Issue with OpenHands +# ALERT: message from your friendly neighborhood code agent -> this is an old version of the OpenHands github resolver. It has been moved to https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/resolver + on: issues: types: [labeled] diff --git a/openhands_resolver/__init__.py b/openhands_resolver/__init__.py index 260c070..1fa5be0 100644 --- a/openhands_resolver/__init__.py +++ b/openhands_resolver/__init__.py @@ -1 +1,11 @@ __version__ = "0.3.1" + +import warnings + +warnings.warn( + "\nDEPRECATION WARNING: This is an old version of the OpenHands resolver. " + "It has been moved to https://github.com/All-Hands-AI/OpenHands/tree/main/openhands/resolver\n" + "Please update your dependencies to use the new version.", + DeprecationWarning, + stacklevel=2 +)