Skip to content

Commit

Permalink
feat: add commit_committer_name_check in push rules gitlab4j#1171
Browse files Browse the repository at this point in the history
  • Loading branch information
LeJeanbono committed Oct 13, 2024
1 parent 6e5e2e6 commit 655416f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/java/org/gitlab4j/api/models/PushRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class PushRules implements Serializable {
private String fileNameRegex;
private Integer maxFileSize;
private Boolean commitCommitterCheck;
private Boolean commitCommitterNameCheck;
private Boolean rejectUnsignedCommits;

public Long getId() {
Expand Down Expand Up @@ -173,6 +174,14 @@ public Boolean getCommitCommitterCheck() {
return commitCommitterCheck;
}

public Boolean getCommitCommitterNameCheck() {
return commitCommitterNameCheck;
}

public void setCommitCommitterNameCheck(Boolean commitCommitterNameCheck) {
this.commitCommitterNameCheck = commitCommitterNameCheck;
}

public void setCommitCommitterCheck(Boolean commitCommitterCheck) {
this.commitCommitterCheck = commitCommitterCheck;
}
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/org/gitlab4j/api/push-rule.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"file_name_regex": "",
"max_file_size": 5,
"commit_committer_check": false,
"commit_committer_name_check": false,
"reject_unsigned_commits": false
}
}

0 comments on commit 655416f

Please sign in to comment.