Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2026-01-07 00:17:34 +00:00
parent c613a7badc
commit 5f235784ea
2 changed files with 29 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**allowMaintainerEdit** | **Boolean** | Whether maintainers can edit the pull request | [optional]
**assignee** | **String** | The primary assignee username | [optional] **assignee** | **String** | The primary assignee username | [optional]
**assignees** | **List<String>** | The list of assignee usernames | [optional] **assignees** | **List<String>** | The list of assignee usernames | [optional]
**base** | **String** | The base branch for the pull request | [optional] **base** | **String** | The base branch for the pull request | [optional]
@@ -25,6 +25,9 @@ import java.util.Objects;
public class CreatePullRequestOption implements Serializable { public class CreatePullRequestOption implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@SerializedName("allow_maintainer_edit")
private Boolean allowMaintainerEdit = null;
@SerializedName("assignee") @SerializedName("assignee")
private String assignee = null; private String assignee = null;
@@ -58,6 +61,25 @@ public class CreatePullRequestOption implements Serializable {
@SerializedName("title") @SerializedName("title")
private String title = null; private String title = null;
public CreatePullRequestOption allowMaintainerEdit(Boolean allowMaintainerEdit) {
this.allowMaintainerEdit = allowMaintainerEdit;
return this;
}
/**
* Whether maintainers can edit the pull request
*
* @return allowMaintainerEdit
*/
@Schema(description = "Whether maintainers can edit the pull request")
public Boolean isAllowMaintainerEdit() {
return allowMaintainerEdit;
}
public void setAllowMaintainerEdit(Boolean allowMaintainerEdit) {
this.allowMaintainerEdit = allowMaintainerEdit;
}
public CreatePullRequestOption assignee(String assignee) { public CreatePullRequestOption assignee(String assignee) {
this.assignee = assignee; this.assignee = assignee;
return this; return this;
@@ -314,7 +336,8 @@ public class CreatePullRequestOption implements Serializable {
return false; return false;
} }
CreatePullRequestOption createPullRequestOption = (CreatePullRequestOption) o; CreatePullRequestOption createPullRequestOption = (CreatePullRequestOption) o;
return Objects.equals(this.assignee, createPullRequestOption.assignee) return Objects.equals(this.allowMaintainerEdit, createPullRequestOption.allowMaintainerEdit)
&& Objects.equals(this.assignee, createPullRequestOption.assignee)
&& Objects.equals(this.assignees, createPullRequestOption.assignees) && Objects.equals(this.assignees, createPullRequestOption.assignees)
&& Objects.equals(this.base, createPullRequestOption.base) && Objects.equals(this.base, createPullRequestOption.base)
&& Objects.equals(this.body, createPullRequestOption.body) && Objects.equals(this.body, createPullRequestOption.body)
@@ -330,6 +353,7 @@ public class CreatePullRequestOption implements Serializable {
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash( return Objects.hash(
allowMaintainerEdit,
assignee, assignee,
assignees, assignees,
base, base,
@@ -348,6 +372,9 @@ public class CreatePullRequestOption implements Serializable {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class CreatePullRequestOption {\n"); sb.append("class CreatePullRequestOption {\n");
sb.append(" allowMaintainerEdit: ")
.append(toIndentedString(allowMaintainerEdit))
.append("\n");
sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n"); sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n");
sb.append(" assignees: ").append(toIndentedString(assignees)).append("\n"); sb.append(" assignees: ").append(toIndentedString(assignees)).append("\n");
sb.append(" base: ").append(toIndentedString(base)).append("\n"); sb.append(" base: ").append(toIndentedString(base)).append("\n");