Skip to content

Refactor prompt and summary files for tera #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2023
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
167 changes: 152 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ serde_json = "1.0.92"
simple_logger = "4.0.0"
strum = "0.24.1"
strum_macros = "0.24.3"
tera = { version = "1.17.1", default-features = false }
tiktoken-rs = "0.1.2"
tokio = { version = "1.25.0", features = ["full"] }
toml = "0.7.1"
toml = "0.7.2"
which = "4.4.0"
3 changes: 2 additions & 1 deletion e2e/test_githook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -eu

(
rm -rf test_dir_foo4
mkdir test_dir_foo4
cd test_dir_foo4
git init
Expand All @@ -17,4 +18,4 @@ set -eu

cat $TEMPFILE
)
rm -rf test_dir_foo4
rm -rf test_dir_foo4
3 changes: 3 additions & 0 deletions e2e/test_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -eu

(
rm -rf test_dir_foo
mkdir test_dir_foo
cd test_dir_foo
git init
Expand All @@ -16,6 +17,7 @@ rm -rf test_dir_foo ;
#############################

(
rm -rf test_dir_foo2
mkdir test_dir_foo2
cd test_dir_foo2
git init
Expand All @@ -28,6 +30,7 @@ rm -rf test_dir_foo2
#############################

(
rm -rf test_dir_foo3
mkdir test_dir_foo3
cd test_dir_foo3
# no git init
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Write the most important bullet points. The list should not be more than a few b

THE FILE SUMMARIES:
```
<SUMMARY_POINTS>
{{ summary_points }}
```

Remember to write only the most important points and do not write more than a few bullet points.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ It is given only as an example of appropriate comments.

THE GIT DIFF TO BE SUMMARIZED:
```
<FILE_DIFF>
{{ file_diff }}
```

THE SUMMARY:
Expand Down
5 changes: 2 additions & 3 deletions prompts/title_commit.prompt.txt → prompts/title_commit.tera
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ Schedule all GitHub actions on all OSs

THE FILE SUMMARIES:
```
<SUMMARY_POINTS>
{{ summary_points }}
```

Remember to write only one line, no more than 50 characters.
THE PULL REQUEST TITLE:

THE PULL REQUEST TITLE:
Loading