Skip to content

Commit

Permalink
Add HappyCommit message to commit message
Browse files Browse the repository at this point in the history
    This change aims to promote HappyCommit and encourage its usage by developers.

- Added HappyCommit signature to commit message
- Updated README.md to reflect new commit message format

Here is the new footer:
This commit message was generated by HappyCommit. Try it in your project today!
Check it out at https://github.com/jackbackes/happycommit

I have tested the code and it works as expected. In fact, here it is working for this commit:

    ~~~~~~~~~~
    This commit message was generated by HappyCommit. Try it in your project today!
    Check it out at https://github.com/jackbackes/happycommit
  • Loading branch information
jackbackes committed Apr 18, 2023
1 parent d9fec92 commit 4088374
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,15 @@ async fn main() {
.await
.unwrap();

let commit_message = format!("{}\n\n{}", subject, body);
let commit_message = format!("{}
{}
~~~~~~~~~~
This commit message was generated by HappyCommit. Try it in your project today!
Check it out at https://github.com/jackbackes/happycommit
", subject, body);

let mut commit_file = tempfile::NamedTempFile::new().expect("Failed to create temporary file");
commit_message.split('\n').for_each(|line| {
Expand Down

0 comments on commit 4088374

Please sign in to comment.