@@ -11,6 +11,9 @@ public class Branch {
1111 private Boolean merged ;
1212 private String name ;
1313 private Boolean isProtected ;
14+ private Boolean isDefault ;
15+ private Boolean canPush ;
16+ private String webUrl ;
1417
1518 public Commit getCommit () {
1619 return commit ;
@@ -60,6 +63,30 @@ public void setProtected(Boolean isProtected) {
6063 this .isProtected = isProtected ;
6164 }
6265
66+ public Boolean getDefault () {
67+ return isDefault ;
68+ }
69+
70+ public void setDefault (Boolean isDefault ) {
71+ this .isDefault = isDefault ;
72+ }
73+
74+ public Boolean getCanPush () {
75+ return canPush ;
76+ }
77+
78+ public void setCanPush (Boolean canPush ) {
79+ this .canPush = canPush ;
80+ }
81+
82+ public String getWebUrl () {
83+ return webUrl ;
84+ }
85+
86+ public void setWebUrl (String webUrl ) {
87+ this .webUrl = webUrl ;
88+ }
89+
6390 public static final boolean isValid (Branch branch ) {
6491 return (branch != null && branch .getName () != null );
6592 }
@@ -80,11 +107,23 @@ public Branch withDevelopersCanPush(Boolean developersCanPush) {
80107 return this ;
81108 }
82109
110+ /**
111+ * Set the merged attribute
112+ * @param merged
113+ * @deprecated Use {@link #withMerged(Boolean)} instead
114+ * @return Current branch instance
115+ */
116+ @ Deprecated
83117 public Branch withDerged (Boolean merged ) {
84118 this .merged = merged ;
85119 return this ;
86120 }
87121
122+ public Branch withMerged (Boolean merged ) {
123+ this .merged = merged ;
124+ return this ;
125+ }
126+
88127 public Branch withName (String name ) {
89128 this .name = name ;
90129 return this ;
0 commit comments