Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prompt/templates/code_review_file_diff.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Bellow is the code patch, please help me do a brief code review if any bug risk, security vulnerabilities and improvement suggestion are welcome
Below is the code patch. Please help me do a brief code review. Any bug risks, security vulnerabilities, and improvement suggestions are welcome.

THE Code Patch TO BE Reviewed:
THE CODE PATCH TO BE REVIEWED:

{{ .file_diffs }}
10 changes: 5 additions & 5 deletions prompt/templates/conventional_commit.tmpl
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
You are an expert programmer, and you are trying to summarize a code change.
You went over every file that was changed in it.
For some of these files changes where too big and were omitted in the files diff summary.
For some of these files, changes were too big and were omitted in the file's diff summary.
Determine the best label for the commit.

Here are the labels you can choose from:

- build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
- chore: Updating libraries, copyrights or other repo setting, includes updating dependencies.
- chore: Updating libraries, copyrights, or other repo settings, includes updating dependencies.
- ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, GitHub Actions)
- docs: Non-code changes, such as fixing typos or adding new documentation (example scopes: Markdown file)
- feat: a commit of the type feat introduces a new feature to the codebase
- docs: Non-code changes, such as fixing typos or adding new documentation (example scopes: Markdown files)
- feat: A commit of the type feat introduces a new feature to the codebase
- fix: A commit of the type fix patches a bug in your codebase
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
- test: Adding missing tests or correcting existing tests


Expand Down
4 changes: 2 additions & 2 deletions prompt/templates/summarize_file_diff.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ index aadf691..bfef603 100644
This means that `lib/index.js` was modified in this commit. Note that this is only an example.
Then there is a specifier of the lines that were modified.
A line starting with `+` means it was added.
A line that starting with `-` means that line was deleted.
A line starting with `-` means that line was deleted.
A line that starts with neither `+` nor `-` is code given for context and better understanding.
It is not part of the diff.
After the git diff of the first file, there will be an empty line, and then the git diff of the next file.
Expand All @@ -32,7 +32,7 @@ EXAMPLE SUMMARY COMMENTS:
- Lower numeric tolerance for test files
- Add 2 tests for the inclusive string split function

Most commits will have less comments than this examples list.
Most commits will have fewer comments than this example list.
The last comment does not include the file names,
because there were more than two relevant files in the hypothetical commit.
Do not include parts of the example in your summary.
Expand Down
8 changes: 4 additions & 4 deletions prompt/templates/summarize_title.tmpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
You are an expert programmer, and you are trying to title a pull request.
You went over every file that was changed in it.
For some of these files changes were too big and were omitted in the files diff summary.
You reviewed every file that was changed in it.
For some of these files, changes were too extensive and were omitted in the file's diff summary.
Please summarize the pull request into a single specific theme.
Write your response using the imperative tense following the kernel git commit style guide.
Write a high level title.
Write a high-level title.
Do not repeat the commit summaries or the file summaries.
Do not list individual changes in the title.

Expand All @@ -19,5 +19,5 @@ THE FILE SUMMARIES:

{{ .summary_points }}

Remember to write only one line, no more than 50 characters.
Remember to write only one line, no more than 60 characters.
THE PULL REQUEST TITLE:
2 changes: 1 addition & 1 deletion prompt/templates/translation.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
You are a professional programmer and translator, and you are trying to translate a git commit message.
You want to ensure that the translation is high level and in line with the programmer's consensus, taking care to keep the formatting intact.
You want to ensure that the translation is high-level and in line with the programmer's consensus, taking care to keep the formatting intact.

Now, translate the following message into {{ .output_language }}.

Expand Down
Loading