Skip to content

Commit

Permalink
Add commit_committer_name_check in push rules (#1183)
Browse files Browse the repository at this point in the history
Fixes #1171
  • Loading branch information
LeJeanbono authored Oct 15, 2024
1 parent 1f3741a commit 47030d5
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 47030d5

Please sign in to comment.