Skip to content

Commit 655416f

Browse files
committed
feat: add commit_committer_name_check in push rules gitlab4j#1171
1 parent 6e5e2e6 commit 655416f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/main/java/org/gitlab4j/api/models/PushRules.java

+9
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class PushRules implements Serializable {
2121
private String fileNameRegex;
2222
private Integer maxFileSize;
2323
private Boolean commitCommitterCheck;
24+
private Boolean commitCommitterNameCheck;
2425
private Boolean rejectUnsignedCommits;
2526

2627
public Long getId() {
@@ -173,6 +174,14 @@ public Boolean getCommitCommitterCheck() {
173174
return commitCommitterCheck;
174175
}
175176

177+
public Boolean getCommitCommitterNameCheck() {
178+
return commitCommitterNameCheck;
179+
}
180+
181+
public void setCommitCommitterNameCheck(Boolean commitCommitterNameCheck) {
182+
this.commitCommitterNameCheck = commitCommitterNameCheck;
183+
}
184+
176185
public void setCommitCommitterCheck(Boolean commitCommitterCheck) {
177186
this.commitCommitterCheck = commitCommitterCheck;
178187
}

src/test/resources/org/gitlab4j/api/push-rule.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"file_name_regex": "",
1313
"max_file_size": 5,
1414
"commit_committer_check": false,
15+
"commit_committer_name_check": false,
1516
"reject_unsigned_commits": false
16-
}
17+
}

0 commit comments

Comments
 (0)