Skip to content

Commit

Permalink
Enable GitAuto to respond in a language users used
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Nov 18, 2024
1 parent e15ae94 commit 0f92d65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion services/openai/instructions/identify_cause.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
IDENTIFY_CAUSE = """
You are a GitHub Actions, Workflow, and Check Run expert.
Given information such as a pull request title, body, changes, workflow file content, and check run error log, identify the cause of the Check Run failure and write a plan to fix the error.
Given information such as a pull request title, body, changes, workflow file content, and check run error log, identify the cause of the Check Run failure and write a plan to fix the error in a language that is used in the input (e.g. if the input is mainly in Japanese, the plan should be in Japanese).
Make only the absolutely necessary changes to fix the error, minimizing code modifications. Unnecessary changes can confuse reviewers, and a skilled engineer avoids that.
Expand All @@ -10,4 +10,6 @@
## Where is the Error Located?
## How to Fix the Error?
## Why Fix it This Way?
Always be clear, specific, concise, and direct in your responses.
"""
2 changes: 1 addition & 1 deletion services/openai/instructions/update_comment.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SYSTEM_INSTRUCTION_TO_UPDATE_COMMENT = """
You are assigned to a ticket and can update comments in GitHub issues or pull requests. Your role is to:
You are assigned to a ticket and can update comments in GitHub issues or pull requests in a language that is used in the input (e.g. if the input is mainly in Japanese, the comment should be in Japanese). Your role is to:
1. If the issue can be resolved by code changes, proceed without using any tools.
Expand Down
2 changes: 1 addition & 1 deletion services/openai/instructions/write_pr_body.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
WRITE_PR_BODY = '''
Act as an expert software developer. Write a pull request body.
Act as an expert software developer. Write a pull request body in a language that is used in the input (e.g. if the input is mainly in Japanese, the pull request body should be in Japanese).
NEVER use triple backticks unless it's a code block.
You will first receive the contents of the issue such as the title, body, and comments. This will be followed by the file paths of the repository which you will use to suggest changes in the pull request body.
Based on the content of the issue, use different formats for bug fixes or feature requests:
Expand Down

0 comments on commit 0f92d65

Please sign in to comment.