mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-25 21:36:52 +08:00
42 lines
1.5 KiB
Django/Jinja
42 lines
1.5 KiB
Django/Jinja
{% if issue_number %}
|
|
You are requested to fix work item #{{ issue_number }}: "{{ issue_title }}" in an Azure DevOps repository.
|
|
A comment on the work item has been addressed to you.
|
|
{% else %}
|
|
Your task is to fix the work item: "{{ issue_title }}".
|
|
{% endif %}
|
|
|
|
# Work Item Description
|
|
{{ issue_body }}
|
|
|
|
{% if previous_comments %}
|
|
# Previous Comments
|
|
For reference, here are the previous comments on the work item:
|
|
|
|
{% for comment in previous_comments %}
|
|
- @{{ comment.author }} said:
|
|
{{ comment.body }}
|
|
{% if not loop.last %}\n\n{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
# Guidelines
|
|
|
|
1. Review the task carefully.
|
|
2. For all changes to actual application code (e.g. in Python or Javascript), add an appropriate test to the testing directory to make sure that the work item has been fixed
|
|
3. Run the tests, and if they pass you are done!
|
|
4. You do NOT need to write new tests if there are only changes to documentation or configuration files.
|
|
|
|
# Final Checklist
|
|
Re-read the work item title, description, and comments and make sure that you have successfully implemented all requirements.
|
|
|
|
Use the Azure DevOps token and Azure DevOps REST APIs to:
|
|
|
|
1. Create a new branch using `openhands/` as a prefix (e.g `openhands/update-readme`)
|
|
2. Commit your changes with a clear commit message
|
|
3. Push the branch to Azure DevOps
|
|
4. Use the `create_pr` tool to open a new pull request
|
|
5. The PR description should:
|
|
- Mention that it "fixes" or "closes" the work item number
|
|
- Include a clear summary of the changes
|
|
- Reference any related work items
|