mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-06 18:02:16 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -22,6 +22,9 @@ import java.util.Objects;
|
||||
public class EditRepoOption implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("allow_fast_forward_only_merge")
|
||||
private Boolean allowFastForwardOnlyMerge = null;
|
||||
|
||||
@SerializedName("allow_manual_merge")
|
||||
private Boolean allowManualMerge = null;
|
||||
|
||||
@@ -112,6 +115,29 @@ public class EditRepoOption implements Serializable {
|
||||
@SerializedName("website")
|
||||
private String website = null;
|
||||
|
||||
public EditRepoOption allowFastForwardOnlyMerge(Boolean allowFastForwardOnlyMerge) {
|
||||
this.allowFastForwardOnlyMerge = allowFastForwardOnlyMerge;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* either `true` to allow fast-forward-only merging pull requests, or `false`
|
||||
* to prevent fast-forward-only merging.
|
||||
*
|
||||
* @return allowFastForwardOnlyMerge
|
||||
*/
|
||||
@Schema(
|
||||
description =
|
||||
"either `true` to allow fast-forward-only merging pull requests, or `false` to prevent"
|
||||
+ " fast-forward-only merging.")
|
||||
public Boolean isAllowFastForwardOnlyMerge() {
|
||||
return allowFastForwardOnlyMerge;
|
||||
}
|
||||
|
||||
public void setAllowFastForwardOnlyMerge(Boolean allowFastForwardOnlyMerge) {
|
||||
this.allowFastForwardOnlyMerge = allowFastForwardOnlyMerge;
|
||||
}
|
||||
|
||||
public EditRepoOption allowManualMerge(Boolean allowManualMerge) {
|
||||
this.allowManualMerge = allowManualMerge;
|
||||
return this;
|
||||
@@ -354,14 +380,14 @@ public class EditRepoOption implements Serializable {
|
||||
|
||||
/**
|
||||
* set to a merge style to be used by this repository: \"merge\", \"rebase\",
|
||||
* \"rebase-merge\", or \"squash\".
|
||||
* \"rebase-merge\", \"squash\", or \"fast-forward-only\".
|
||||
*
|
||||
* @return defaultMergeStyle
|
||||
*/
|
||||
@Schema(
|
||||
description =
|
||||
"set to a merge style to be used by this repository: \"merge\", \"rebase\","
|
||||
+ " \"rebase-merge\", or \"squash\".")
|
||||
+ " \"rebase-merge\", \"squash\", or \"fast-forward-only\".")
|
||||
public String getDefaultMergeStyle() {
|
||||
return defaultMergeStyle;
|
||||
}
|
||||
@@ -740,7 +766,8 @@ public class EditRepoOption implements Serializable {
|
||||
return false;
|
||||
}
|
||||
EditRepoOption editRepoOption = (EditRepoOption) o;
|
||||
return Objects.equals(this.allowManualMerge, editRepoOption.allowManualMerge)
|
||||
return Objects.equals(this.allowFastForwardOnlyMerge, editRepoOption.allowFastForwardOnlyMerge)
|
||||
&& Objects.equals(this.allowManualMerge, editRepoOption.allowManualMerge)
|
||||
&& Objects.equals(this.allowMergeCommits, editRepoOption.allowMergeCommits)
|
||||
&& Objects.equals(this.allowRebase, editRepoOption.allowRebase)
|
||||
&& Objects.equals(this.allowRebaseExplicit, editRepoOption.allowRebaseExplicit)
|
||||
@@ -777,6 +804,7 @@ public class EditRepoOption implements Serializable {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
allowFastForwardOnlyMerge,
|
||||
allowManualMerge,
|
||||
allowMergeCommits,
|
||||
allowRebase,
|
||||
@@ -814,6 +842,9 @@ public class EditRepoOption implements Serializable {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class EditRepoOption {\n");
|
||||
|
||||
sb.append(" allowFastForwardOnlyMerge: ")
|
||||
.append(toIndentedString(allowFastForwardOnlyMerge))
|
||||
.append("\n");
|
||||
sb.append(" allowManualMerge: ").append(toIndentedString(allowManualMerge)).append("\n");
|
||||
sb.append(" allowMergeCommits: ").append(toIndentedString(allowMergeCommits)).append("\n");
|
||||
sb.append(" allowRebase: ").append(toIndentedString(allowRebase)).append("\n");
|
||||
|
||||
@@ -33,6 +33,7 @@ public class MergePullRequestOption implements Serializable {
|
||||
REBASE("rebase"),
|
||||
REBASE_MERGE("rebase-merge"),
|
||||
SQUASH("squash"),
|
||||
FAST_FORWARD_ONLY("fast-forward-only"),
|
||||
MANUALLY_MERGED("manually-merged");
|
||||
|
||||
private String value;
|
||||
|
||||
@@ -28,6 +28,9 @@ import java.util.Objects;
|
||||
public class Repository implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("allow_fast_forward_only_merge")
|
||||
private Boolean allowFastForwardOnlyMerge = null;
|
||||
|
||||
@SerializedName("allow_merge_commits")
|
||||
private Boolean allowMergeCommits = null;
|
||||
|
||||
@@ -247,6 +250,25 @@ public class Repository implements Serializable {
|
||||
@SerializedName("website")
|
||||
private String website = null;
|
||||
|
||||
public Repository allowFastForwardOnlyMerge(Boolean allowFastForwardOnlyMerge) {
|
||||
this.allowFastForwardOnlyMerge = allowFastForwardOnlyMerge;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get allowFastForwardOnlyMerge
|
||||
*
|
||||
* @return allowFastForwardOnlyMerge
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Boolean isAllowFastForwardOnlyMerge() {
|
||||
return allowFastForwardOnlyMerge;
|
||||
}
|
||||
|
||||
public void setAllowFastForwardOnlyMerge(Boolean allowFastForwardOnlyMerge) {
|
||||
this.allowFastForwardOnlyMerge = allowFastForwardOnlyMerge;
|
||||
}
|
||||
|
||||
public Repository allowMergeCommits(Boolean allowMergeCommits) {
|
||||
this.allowMergeCommits = allowMergeCommits;
|
||||
return this;
|
||||
@@ -1358,7 +1380,8 @@ public class Repository implements Serializable {
|
||||
return false;
|
||||
}
|
||||
Repository repository = (Repository) o;
|
||||
return Objects.equals(this.allowMergeCommits, repository.allowMergeCommits)
|
||||
return Objects.equals(this.allowFastForwardOnlyMerge, repository.allowFastForwardOnlyMerge)
|
||||
&& Objects.equals(this.allowMergeCommits, repository.allowMergeCommits)
|
||||
&& Objects.equals(this.allowRebase, repository.allowRebase)
|
||||
&& Objects.equals(this.allowRebaseExplicit, repository.allowRebaseExplicit)
|
||||
&& Objects.equals(this.allowRebaseUpdate, repository.allowRebaseUpdate)
|
||||
@@ -1422,6 +1445,7 @@ public class Repository implements Serializable {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(
|
||||
allowFastForwardOnlyMerge,
|
||||
allowMergeCommits,
|
||||
allowRebase,
|
||||
allowRebaseExplicit,
|
||||
@@ -1487,6 +1511,9 @@ public class Repository implements Serializable {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Repository {\n");
|
||||
|
||||
sb.append(" allowFastForwardOnlyMerge: ")
|
||||
.append(toIndentedString(allowFastForwardOnlyMerge))
|
||||
.append("\n");
|
||||
sb.append(" allowMergeCommits: ").append(toIndentedString(allowMergeCommits)).append("\n");
|
||||
sb.append(" allowRebase: ").append(toIndentedString(allowRebase)).append("\n");
|
||||
sb.append(" allowRebaseExplicit: ")
|
||||
|
||||
Reference in New Issue
Block a user