From 3f3b9d3a7f2ffb7603a96af65832496e86a0cbc2 Mon Sep 17 00:00:00 2001 From: Kevin Matthes <92332892+kevinmatthes@users.noreply.github.com> Date: Thu, 18 Jan 2024 23:18:14 +0100 Subject: [PATCH] [Bugfix] comment-changes: ExitCode in Case that Tag does not Exist (#1120) * Skip ::= adjust ExitCode for not-existing tag * Create summary of recent changes --------- Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com> --- ...comment-changes-sysexits-exitcode-for-not-existing-tag.ron | 4 ++++ src/changelog/comment_changes.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20240118_221327_GitHub_Actions_comment-changes-sysexits-exitcode-for-not-existing-tag.ron diff --git a/changelog.d/20240118_221327_GitHub_Actions_comment-changes-sysexits-exitcode-for-not-existing-tag.ron b/changelog.d/20240118_221327_GitHub_Actions_comment-changes-sysexits-exitcode-for-not-existing-tag.ron new file mode 100644 index 00000000..81a62feb --- /dev/null +++ b/changelog.d/20240118_221327_GitHub_Actions_comment-changes-sysexits-exitcode-for-not-existing-tag.ron @@ -0,0 +1,4 @@ +( + references: {}, + changes: {}, +) diff --git a/src/changelog/comment_changes.rs b/src/changelog/comment_changes.rs index 601eabda..ec4f5b60 100644 --- a/src/changelog/comment_changes.rs +++ b/src/changelog/comment_changes.rs @@ -185,7 +185,7 @@ impl Logic { let oid = git2::Oid::from_str(stop).map_or_else( |_| { eprintln!("`{stop}` does not seem to exist."); - Err(ExitCode::DataErr) + Err(ExitCode::Usage) }, Ok, )?;