Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2025-07-04 00:05:26 +00:00
parent 81fe381fa4
commit efc820221b
4 changed files with 37 additions and 7 deletions
@@ -1694,13 +1694,17 @@ public interface RepositoryApi {
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @param filepath path of the dir, file, symlink or submodule in the repo (required)
* @param filepath path of the dir, file, symlink or submodule in the repo. Swagger requires path
* parameter to be \"required\", you can leave it empty or pass a single dot
* (\".\") to get the root directory. (required)
* @param ref the name of the commit/branch/tag, default to the repositorys default branch.
* (optional)
* @param includes By default this API's response only contains file's metadata. Use
* comma-separated \"includes\" options to retrieve more fields. Option
* \"file_content\" will try to retrieve the file content, option
* \"lfs_metadata\" will try to retrieve LFS metadata. (optional)
* \"file_content\" will try to retrieve the file content,
* \"lfs_metadata\" will try to retrieve LFS metadata, \"commit_metadata\"
* will try to retrieve commit metadata, and \"commit_message\" will try to retrieve
* commit message. (optional)
* @return Call<ContentsExtResponse>
*/
@GET("repos/{owner}/{repo}/contents-ext/{filepath}")
@@ -50,6 +50,9 @@ public class ContentsResponse implements Serializable {
@SerializedName("last_author_date")
private Date lastAuthorDate = null;
@SerializedName("last_commit_message")
private String lastCommitMessage = null;
@SerializedName("last_commit_sha")
private String lastCommitSha = null;
@@ -219,6 +222,25 @@ public class ContentsResponse implements Serializable {
this.lastAuthorDate = lastAuthorDate;
}
public ContentsResponse lastCommitMessage(String lastCommitMessage) {
this.lastCommitMessage = lastCommitMessage;
return this;
}
/**
* Get lastCommitMessage
*
* @return lastCommitMessage
*/
@Schema(description = "")
public String getLastCommitMessage() {
return lastCommitMessage;
}
public void setLastCommitMessage(String lastCommitMessage) {
this.lastCommitMessage = lastCommitMessage;
}
public ContentsResponse lastCommitSha(String lastCommitSha) {
this.lastCommitSha = lastCommitSha;
return this;
@@ -466,6 +488,7 @@ public class ContentsResponse implements Serializable {
&& Objects.equals(this.gitUrl, contentsResponse.gitUrl)
&& Objects.equals(this.htmlUrl, contentsResponse.htmlUrl)
&& Objects.equals(this.lastAuthorDate, contentsResponse.lastAuthorDate)
&& Objects.equals(this.lastCommitMessage, contentsResponse.lastCommitMessage)
&& Objects.equals(this.lastCommitSha, contentsResponse.lastCommitSha)
&& Objects.equals(this.lastCommitterDate, contentsResponse.lastCommitterDate)
&& Objects.equals(this.lfsOid, contentsResponse.lfsOid)
@@ -490,6 +513,7 @@ public class ContentsResponse implements Serializable {
gitUrl,
htmlUrl,
lastAuthorDate,
lastCommitMessage,
lastCommitSha,
lastCommitterDate,
lfsOid,
@@ -516,6 +540,7 @@ public class ContentsResponse implements Serializable {
sb.append(" gitUrl: ").append(toIndentedString(gitUrl)).append("\n");
sb.append(" htmlUrl: ").append(toIndentedString(htmlUrl)).append("\n");
sb.append(" lastAuthorDate: ").append(toIndentedString(lastAuthorDate)).append("\n");
sb.append(" lastCommitMessage: ").append(toIndentedString(lastCommitMessage)).append("\n");
sb.append(" lastCommitSha: ").append(toIndentedString(lastCommitSha)).append("\n");
sb.append(" lastCommitterDate: ").append(toIndentedString(lastCommitterDate)).append("\n");
sb.append(" lfsOid: ").append(toIndentedString(lfsOid)).append("\n");