"feat(pr_handler): Add PR title and description generation rules"
This commit is contained in:
parent
8445e2f076
commit
aa56f6dab7
@ -3,7 +3,16 @@ use crate::git_grabber::GitGrabber;
|
|||||||
pub struct PrHandler {}
|
pub struct PrHandler {}
|
||||||
impl PrHandler {
|
impl PrHandler {
|
||||||
pub fn new() -> Option<(String, String)> {
|
pub fn new() -> Option<(String, String)> {
|
||||||
let dirs = String::from("Pull Request Handler");
|
let directions = String::from("
|
||||||
Some((dirs, GitGrabber::generate_repo_desc("", "")))
|
<Variables>
|
||||||
|
change_type: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
|
||||||
|
<PR Title>
|
||||||
|
create a short PR title from this diff, with format <change_type>(<scope>): <pr_description>.
|
||||||
|
<PR Description>
|
||||||
|
create an additional PR Description in markdown format to describe the changes made in this diff.
|
||||||
|
<Response Constraints>
|
||||||
|
Only respond with the Pr title and Pr description.
|
||||||
|
");
|
||||||
|
Some((directions, GitGrabber::generate_repo_desc()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user