Skip to content

Commit b50c50a

Browse files
jgoldhammergmessner
authored andcommitted
fix(systemhooks): add repositoryUpdateEvents as field to SystemHook model (#234)
1 parent bd8850a commit b50c50a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class SystemHook {
1616
private Boolean pushEvents;
1717
private Boolean tagPushEvents;
1818
private Boolean enableSslVerification;
19+
private Boolean repositoryUpdateEvents;
1920

2021
public Integer getId() {
2122
return id;
@@ -64,4 +65,27 @@ public Boolean getEnableSslVerification() {
6465
public void setEnableSslVerification(Boolean enableSslVerification) {
6566
this.enableSslVerification = enableSslVerification;
6667
}
68+
69+
public void setRepositoryUpdateEvents(Boolean repositoryUpdateEvents) {
70+
this.repositoryUpdateEvents = repositoryUpdateEvents;
71+
}
72+
73+
public Boolean getRepositoryUpdateEvents() {
74+
return repositoryUpdateEvents;
75+
}
76+
77+
@Override
78+
public String toString() {
79+
final StringBuilder sb = new StringBuilder("SystemHook{");
80+
sb.append("id=").append(id);
81+
sb.append(", url='").append(url).append('\'');
82+
sb.append(", createdAt=").append(createdAt);
83+
sb.append(", pushEvents=").append(pushEvents);
84+
sb.append(", tagPushEvents=").append(tagPushEvents);
85+
sb.append(", enableSslVerification=").append(enableSslVerification);
86+
sb.append(", repositoryUpdateEvents=").append(repositoryUpdateEvents);
87+
sb.append('}');
88+
return sb.toString();
89+
}
90+
6791
}

0 commit comments

Comments
 (0)