From 5f235784eaa5ba03488e2d313ca2ba1862237d4f Mon Sep 17 00:00:00 2001 From: gitnexbot Date: Wed, 7 Jan 2026 00:17:34 +0000 Subject: [PATCH] Synchronizing API and documentation updates --- docs/CreatePullRequestOption.md | 1 + .../v2/models/CreatePullRequestOption.java | 29 ++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/CreatePullRequestOption.md b/docs/CreatePullRequestOption.md index c5a174a..498ff24 100644 --- a/docs/CreatePullRequestOption.md +++ b/docs/CreatePullRequestOption.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**allowMaintainerEdit** | **Boolean** | Whether maintainers can edit the pull request | [optional] **assignee** | **String** | The primary assignee username | [optional] **assignees** | **List<String>** | The list of assignee usernames | [optional] **base** | **String** | The base branch for the pull request | [optional] diff --git a/src/main/java/org/gitnex/tea4j/v2/models/CreatePullRequestOption.java b/src/main/java/org/gitnex/tea4j/v2/models/CreatePullRequestOption.java index 30455b5..e517cad 100644 --- a/src/main/java/org/gitnex/tea4j/v2/models/CreatePullRequestOption.java +++ b/src/main/java/org/gitnex/tea4j/v2/models/CreatePullRequestOption.java @@ -25,6 +25,9 @@ import java.util.Objects; public class CreatePullRequestOption implements Serializable { private static final long serialVersionUID = 1L; + @SerializedName("allow_maintainer_edit") + private Boolean allowMaintainerEdit = null; + @SerializedName("assignee") private String assignee = null; @@ -58,6 +61,25 @@ public class CreatePullRequestOption implements Serializable { @SerializedName("title") 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) { this.assignee = assignee; return this; @@ -314,7 +336,8 @@ public class CreatePullRequestOption implements Serializable { return false; } 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.base, createPullRequestOption.base) && Objects.equals(this.body, createPullRequestOption.body) @@ -330,6 +353,7 @@ public class CreatePullRequestOption implements Serializable { @Override public int hashCode() { return Objects.hash( + allowMaintainerEdit, assignee, assignees, base, @@ -348,6 +372,9 @@ public class CreatePullRequestOption implements Serializable { StringBuilder sb = new StringBuilder(); sb.append("class CreatePullRequestOption {\n"); + sb.append(" allowMaintainerEdit: ") + .append(toIndentedString(allowMaintainerEdit)) + .append("\n"); sb.append(" assignee: ").append(toIndentedString(assignee)).append("\n"); sb.append(" assignees: ").append(toIndentedString(assignees)).append("\n"); sb.append(" base: ").append(toIndentedString(base)).append("\n");