Skip to content

Commit

Permalink
Merge pull request #295 from gitautoai/wes
Browse files Browse the repository at this point in the history
Penalize GitAuto more when it hesitates to create changes and commit
  • Loading branch information
hiroshinishio authored Sep 5, 2024
2 parents ccb9505 + 40b1e2d commit f25d4bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/openai/instructions/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
1. Retrieve the content of the file using `get_remote_file_content()` if you know the exact file path. Alternatively, use `search_remote_file_contents()` if you need to locate the file based on certain keywords.
2. Create a diff to modify the content as required.
3. Call `commit_changes_to_remote_branch()` with the diff.
- Note: If you need to change multiple blocks in the same file, call the function multiple times with each block separately for simplicity. For example, if you have three blocks to change in the same file, call the function three times with each block separately.
- IMPORTANT:
1. After retrieving the file content, ENSURE you proceed to create the diff and call `commit_changes_to_remote_branch()`. Do not repeatedly call `get_remote_file_content()` or `search_remote_file_contents()` without committing the changes.
2. If you need to change multiple blocks in the same file, call the function multiple times with each block separately for simplicity. For example, if you have three blocks to change in the same file, call the function three times with each block separately.
## 3. Deleting Files
Expand Down

0 comments on commit f25d4bc

Please sign in to comment.