Skip to content

Commit a1eb05f

Browse files
authored
using object_attributes.oldrev for alwaysIgnoreNonCodeRelatedUpdates (#335)
1 parent f7d1844 commit a1eb05f

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabMergeRequestTrigger.java

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,7 @@ private boolean shouldBuild(MergeRequestEvent mrEvent, GitLabSCMSourceContext co
4343

4444
if (action != null) {
4545
if (action.equals("update") && context.alwaysIgnoreNonCodeRelatedUpdates()) {
46-
if (mrEvent.getChanges().getAssignees() != null) {
47-
shouldBuild = false;
48-
}
49-
50-
if (mrEvent.getChanges().getDescription() != null) {
51-
shouldBuild = false;
52-
}
53-
54-
if (mrEvent.getChanges().getMilestoneId() != null) {
55-
shouldBuild = false;
56-
}
57-
58-
if (mrEvent.getChanges().getTitle() != null) {
59-
shouldBuild = false;
60-
}
61-
62-
if (mrEvent.getChanges().getTotalTimeSpent() != null) {
63-
shouldBuild = false;
64-
}
65-
66-
if (mrEvent.getChanges().getLabels() != null) {
46+
if (attributes.getOldrev() == null) {
6747
shouldBuild = false;
6848
}
6949
}

0 commit comments

Comments
 (0)