From aa56f6dab70430a98c8138d024db16c89ad528a8 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 12 Jan 2025 13:12:38 -0500 Subject: [PATCH] "feat(pr_handler): Add PR title and description generation rules" --- src/pr_handler.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pr_handler.rs b/src/pr_handler.rs index ae5c931..f9e5442 100644 --- a/src/pr_handler.rs +++ b/src/pr_handler.rs @@ -3,7 +3,16 @@ use crate::git_grabber::GitGrabber; pub struct PrHandler {} impl PrHandler { pub fn new() -> Option<(String, String)> { - let dirs = String::from("Pull Request Handler"); - Some((dirs, GitGrabber::generate_repo_desc("", ""))) + let directions = String::from(" + + change_type: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert + + create a short PR title from this diff, with format (): . + + create an additional PR Description in markdown format to describe the changes made in this diff. + + Only respond with the Pr title and Pr description. + "); + Some((directions, GitGrabber::generate_repo_desc())) } }