-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'github-api-1.324' into release/v1.x
github-api-1.324
- Loading branch information
Showing
52 changed files
with
3,836 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package org.kohsuke.github; | ||
|
||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
|
||
/** | ||
* The type Gh branch sync. | ||
*/ | ||
public class GHBranchSync extends GitHubInteractiveObject { | ||
|
||
/** | ||
* The Repository that this branch is in. | ||
*/ | ||
private GHRepository owner; | ||
|
||
/** | ||
* The message. | ||
*/ | ||
private String message; | ||
|
||
/** | ||
* The merge type. | ||
*/ | ||
private String mergeType; | ||
|
||
/** | ||
* The base branch. | ||
*/ | ||
private String baseBranch; | ||
|
||
/** | ||
* Gets owner. | ||
* | ||
* @return the repository that this branch is in. | ||
*/ | ||
@SuppressFBWarnings(value = { "EI_EXPOSE_REP" }, justification = "Expected behavior") | ||
public GHRepository getOwner() { | ||
return owner; | ||
} | ||
|
||
/** | ||
* Gets message. | ||
* | ||
* @return the message | ||
*/ | ||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
/** | ||
* Gets merge type. | ||
* | ||
* @return the merge type | ||
*/ | ||
public String getMergeType() { | ||
return mergeType; | ||
} | ||
|
||
/** | ||
* Gets base branch. | ||
* | ||
* @return the base branch | ||
*/ | ||
public String getBaseBranch() { | ||
return baseBranch; | ||
} | ||
|
||
/** | ||
* To string. | ||
* | ||
* @return the string | ||
*/ | ||
@Override | ||
public String toString() { | ||
return "GHBranchSync{" + "message='" + message + '\'' + ", mergeType='" + mergeType + '\'' + ", baseBranch='" | ||
+ baseBranch + '\'' + '}'; | ||
} | ||
|
||
/** | ||
* Wrap. | ||
* | ||
* @param repo | ||
* the repo | ||
* @return the GH branch sync | ||
*/ | ||
GHBranchSync wrap(GHRepository repo) { | ||
this.owner = repo; | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.