Skip to content

Commit

Permalink
[Enhancement] Migrate to aeruginous_io::PathBufLikeAppendix (#1214)
Browse files Browse the repository at this point in the history
* Changed ::= migrate to aeruginous_io::PathBufLikeAppendix

* Create summary of recent changes

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
kevinmatthes and github-actions[bot] committed Feb 11, 2024
1 parent 04deb61 commit 1b948ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(
references: {},
changes: {
"Changed": [
"migrate to aeruginous_io::PathBufLikeAppendix",
],
},
)
8 changes: 4 additions & 4 deletions src/changelog/comment_changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
| |
\******************************************************************************/

use crate::{FragmentExportFormat, PatternWriter, ToMd, ToRon, ToRst, ToXml};
use crate::{FragmentExportFormat, ToMd, ToRon, ToRst, ToXml};
use aeruginous_io::PathBufLikeAppendix;
use git2::{Oid, Repository};
use sysexits::{ExitCode, Result};

Expand Down Expand Up @@ -461,15 +462,14 @@ impl Logic {
self.get_branch()?;
self.get_user()?;

format!(
content.append_loudly(format!(
"{}/{}_{}_{}.{}",
self.cli.output_directory,
chrono::Local::now().format("%Y%m%d_%H%M%S"),
self.user,
self.branch.split('/').last().unwrap_or("HEAD"),
self.cli.extension
)
.append(Box::new(content))
))
}
}

Expand Down

0 comments on commit 1b948ed

Please sign in to comment.