Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit cb22488

Browse files
committed
Merge pull request hub4j#190
2 parents 87d1256 + eb9551d commit cb22488

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/org/kohsuke/github/GHRepository.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,14 @@ public Date getPushedAt() {
364364
* @return
365365
* This field is null until the user explicitly configures the master branch.
366366
*/
367+
public String getDefaultBranch() {
368+
return default_branch;
369+
}
370+
371+
/**
372+
* @deprecated
373+
* Renamed to {@link #getDefaultBranch()}
374+
*/
367375
public String getMasterBranch() {
368376
return default_branch;
369377
}
@@ -494,6 +502,10 @@ public void setHomepage(String value) throws IOException {
494502
edit("homepage",value);
495503
}
496504

505+
public void setDefaultBranch(String value) throws IOException {
506+
edit("default_branch", value);
507+
}
508+
497509
/**
498510
* Deletes this repository.
499511
*/

0 commit comments

Comments
 (0)