From 675d44b8349078f2d231ca37a1621254a4c50ab5 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 22 Jan 2024 00:00:00 +0000 Subject: feat(git) save pgp sig in patch event so that commit ids can be maintained --- src/sub_commands/prs/create.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/sub_commands/prs/create.rs') diff --git a/src/sub_commands/prs/create.rs b/src/sub_commands/prs/create.rs index 5e41a56..e5d6262 100644 --- a/src/sub_commands/prs/create.rs +++ b/src/sub_commands/prs/create.rs @@ -382,6 +382,14 @@ pub fn generate_patch_event( TagKind::Custom("parent-commit".to_string()), vec![commit_parent.to_string()], ), + Tag::Generic( + TagKind::Custom("commit-sig".to_string()), + vec![ + git_repo + .extract_commit_pgp_signature(commit) + .unwrap_or_default(), + ], + ), Tag::Description(git_repo.get_commit_message(commit)?.to_string()), Tag::Generic( TagKind::Custom("author".to_string()), -- cgit v1.2.3