Skip to content
Open
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
92 changes: 92 additions & 0 deletions src/main/java/com/bytelegend/GitHubApiCommitObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,98 @@
import java.nio.file.Files;

public class GitHubApiCommitObject {

private String sha;
private String node_id;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'node_id' 必须匹配表达式: '^[a-z一-鿿][a-zA-Z0-9一-鿿]*$' 。

private String url;
private String html_url;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'html_url' 必须匹配表达式: '^[a-z一-鿿][a-zA-Z0-9一-鿿]*$' 。

private Author author;
private Committer committer;
private String message;
private Tree tree;
private List<Parent> parents;
private Verification verification;

public String getSha() {
return sha;
}

public void setSha(String sha) {
this.sha = sha;
}

public String getNode_id() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'getNode_id' 必须匹配表达式: '^[a-z一-鿿][a-zA-Z0-9一-鿿]*$' 。

return node_id;
}

public void setNode_id(String node_id) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'setNode_id' 必须匹配表达式: '^[a-z一-鿿][a-zA-Z0-9一-鿿]*$' 。

this.node_id = node_id;
}

public String getUrl() {
return url;
}

public void setUrl(String url) {
this.url = url;
}

public String getHtml_url() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'getHtml_url' 必须匹配表达式: '^[a-z一-鿿][a-zA-Z0-9一-鿿]*$' 。

return html_url;
}

public void setHtml_url(String html_url) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'setHtml_url' 必须匹配表达式: '^[a-z一-鿿][a-zA-Z0-9一-鿿]*$' 。

this.html_url = html_url;
}

public Author getAuthor() {
return author;
}

public void setAuthor(Author author) {
this.author = author;
}

public Committer getCommitter() {
return committer;
}

public void setCommitter(Committer committer) {
this.committer = committer;
}

public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}

public Tree getTree() {
return tree;
}

public void setTree(Tree tree) {
this.tree = tree;
}

public List<Parent> getParents() {
return parents;
}

public void setParents(List<Parent> parents) {
this.parents = parents;
}

public Verification getVerification() {
return verification;
}

public void setVerification(Verification verification) {
this.verification = verification;
}

public static GitHubApiCommitObject fromJson(String json) throws JsonProcessingException {
ObjectMapper mapper =
new ObjectMapper()
Expand Down