Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java temurin-11.0.28+6
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ protected Form createForm(RepositoryFile file, String branchName, String commitM
form.param("content", content);

addFormParam(form, "commit_message", commitMessage, true);
addFormParam(form, "author_email", file.getAuthorEmail(), false);
addFormParam(form, "author_name", file.getAuthorName(), false);
return (form);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public class RepositoryFile implements Serializable {
private String blobId;
private String commitId;
private String lastCommitId;
private String authorName;
private String authorEmail;

public String getFileName() {
return fileName;
Expand Down Expand Up @@ -102,6 +104,22 @@ public void setLastCommitId(String lastCommitId) {
this.lastCommitId = lastCommitId;
}

public String getAuthorName() {
return authorName;
}

public void setAuthorName(String authorName) {
this.authorName = authorName;
}

public String getAuthorEmail() {
return authorEmail;
}

public void setAuthorEmail(String authorEmail) {
this.authorEmail = authorEmail;
}

/**
* Returns the content as a String, base64 decoding it if necessary.
* For binary files it is recommended to use getDecodedContentAsBytes()
Expand Down
Loading