Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb22488

Browse filesBrowse files
committed
Merge pull request hub4j#190
2 parents 87d1256 + eb9551d commit cb22488
Copy full SHA for cb22488

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.