-
Notifications
You must be signed in to change notification settings - Fork 6
Answer by lhhhhhhhhhhhhhh #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,98 @@ | |
| import java.nio.file.Files; | ||
|
|
||
| public class GitHubApiCommitObject { | ||
|
|
||
| private String sha; | ||
| private String node_id; | ||
| private String url; | ||
| private String html_url; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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() { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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() { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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() | ||
|
|
||
There was a problem hiding this comment.
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一-鿿]*$' 。