diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-01-22 00:00:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-01-22 00:00:00 +0000 |
| commit | 675d44b8349078f2d231ca37a1621254a4c50ab5 (patch) | |
| tree | 784286231dc6fade15266a6327b58daffe5bb1c8 /src/sub_commands/prs | |
| parent | 9200b96bd8fe7ac254e41048790d7411937c3f95 (diff) | |
feat(git) save pgp sig in patch event
so that commit ids can be maintained
Diffstat (limited to 'src/sub_commands/prs')
| -rw-r--r-- | src/sub_commands/prs/create.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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( | |||
| 382 | TagKind::Custom("parent-commit".to_string()), | 382 | TagKind::Custom("parent-commit".to_string()), |
| 383 | vec![commit_parent.to_string()], | 383 | vec![commit_parent.to_string()], |
| 384 | ), | 384 | ), |
| 385 | Tag::Generic( | ||
| 386 | TagKind::Custom("commit-sig".to_string()), | ||
| 387 | vec![ | ||
| 388 | git_repo | ||
| 389 | .extract_commit_pgp_signature(commit) | ||
| 390 | .unwrap_or_default(), | ||
| 391 | ], | ||
| 392 | ), | ||
| 385 | Tag::Description(git_repo.get_commit_message(commit)?.to_string()), | 393 | Tag::Description(git_repo.get_commit_message(commit)?.to_string()), |
| 386 | Tag::Generic( | 394 | Tag::Generic( |
| 387 | TagKind::Custom("author".to_string()), | 395 | TagKind::Custom("author".to_string()), |