From 0cc9e6f2478cb962142d5902813c4608b9872f17 Mon Sep 17 00:00:00 2001 From: Tomas Westling Date: Tue, 22 Aug 2023 12:37:40 +0200 Subject: [PATCH] Added a new change kind, NO_CHANGE Since 2015, NO_CHANGE is a possible kind for a change. This means that only the SHA-1 differs, so even more trivial than a trivial rebase or no code change. This should be checked by the gerrit-trigger if either exclude trivial rebase or exclude no code change is selected, thus it needs to be added here. --- .../tools/gerrit/gerritevents/dto/GerritChangeKind.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/sonymobile/tools/gerrit/gerritevents/dto/GerritChangeKind.java b/src/main/java/com/sonymobile/tools/gerrit/gerritevents/dto/GerritChangeKind.java index 12cc9cd7..6696b357 100644 --- a/src/main/java/com/sonymobile/tools/gerrit/gerritevents/dto/GerritChangeKind.java +++ b/src/main/java/com/sonymobile/tools/gerrit/gerritevents/dto/GerritChangeKind.java @@ -42,6 +42,11 @@ public enum GerritChangeKind { * commit message). */ NO_CODE_CHANGE("NO_CODE_CHANGE"), + /** + * No changes (same parent tree, same code delta, same commit message, + * only the patch set SHA-1 is different). + */ + NO_CHANGE("NO_CHANGE"), /** * Catch-all type if Gerrit adds a new ChangeKind we don't know about. */