Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2026-04-28 00:02:34 +00:00
parent a8286526e7
commit 998292efd3
4 changed files with 208 additions and 0 deletions
@@ -42,6 +42,7 @@ import org.gitnex.tea4j.v2.models.CreateHookOption;
import org.gitnex.tea4j.v2.models.CreateKeyOption;
import org.gitnex.tea4j.v2.models.CreateOrUpdateSecretOption;
import org.gitnex.tea4j.v2.models.CreatePullRequestOption;
import org.gitnex.tea4j.v2.models.CreatePullReviewCommentReplyOptions;
import org.gitnex.tea4j.v2.models.CreatePullReviewOptions;
import org.gitnex.tea4j.v2.models.CreatePushMirrorOption;
import org.gitnex.tea4j.v2.models.CreateReleaseOption;
@@ -942,6 +943,25 @@ public interface RepositoryApi {
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") Long index);
/**
* Reply to a pull request review comment
*
* @param body (required)
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param index index of the pull request (required)
* @param id id of the review comment to reply to (required)
* @return Call<PullReviewComment>
*/
@Headers({"Content-Type:application/json"})
@POST("repos/{owner}/{repo}/pulls/{index}/comments/{id}/replies")
Call<PullReviewComment> repoCreatePullReviewCommentReply(
@retrofit2.http.Body CreatePullReviewCommentReplyOptions body,
@retrofit2.http.Path("owner") String owner,
@retrofit2.http.Path("repo") String repo,
@retrofit2.http.Path("index") Long index,
@retrofit2.http.Path("id") Long id);
/**
* create review requests for a pull request
*
@@ -0,0 +1,86 @@
/*
* Gitea API
* This documentation describes the Gitea API.
*
* OpenAPI spec version: {{.SwaggerAppVer}}
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Objects;
/** CreatePullReviewCommentReplyOptions are options to reply to a pull request review comment */
@Schema(
description =
"CreatePullReviewCommentReplyOptions are options to reply to a pull request review comment")
public class CreatePullReviewCommentReplyOptions implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("body")
private String body = null;
public CreatePullReviewCommentReplyOptions body(String body) {
this.body = body;
return this;
}
/**
* Get body
*
* @return body
*/
@Schema(description = "")
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreatePullReviewCommentReplyOptions createPullReviewCommentReplyOptions =
(CreatePullReviewCommentReplyOptions) o;
return Objects.equals(this.body, createPullReviewCommentReplyOptions.body);
}
@Override
public int hashCode() {
return Objects.hash(body);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreatePullReviewCommentReplyOptions {\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}