feat(pr_handler): Create PR title and description generation rules #1

Merged
tristonarmstrong merged 20 commits from dev into master 2025-01-12 19:06:43 +00:00
Showing only changes of commit 28afb4942d - Show all commits

View File

@ -4,7 +4,17 @@ pub struct CommitHandler {}
impl CommitHandler {
pub fn new() -> Option<(String, String)> {
let dirs = String::from("create a short commit message from this diff, with format Task(<branch_name>): <commit_message>. only respond with the commit message");
Some((dirs, GitGrabber::get_diff()))
let dirs = String::from(format!("
<Variables>
change_type: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
<Commit Instructions>
create a short commit message from this entire diff, with format <change_type>(<scope>): <commit_message>.
the commit message should vaguely describe the changes present unless a small change is made that can be
precisely described withtin a short commit message
<Response Constraints>
Only respond with the commit message.
"));
let prompt = GitGrabber::get_diff();
Some((dirs, prompt))
}
}