-
Notifications
You must be signed in to change notification settings - Fork 751
Fixes null commit date #985
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
Conversation
7105c19
to
21b6130
Compare
21b6130
to
938603f
Compare
@@ -0,0 +1,41 @@ | ||
{ |
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.
You might need to re-record. I don't see any use of this in the test.
GHRepository repo = gitHub.getRepository("hub4j/github-api"); | ||
GHCommit commit = repo.getCommit("ed4f9c8176866977677c99ac9668a8ce10231bc8"); | ||
|
||
assertNotNull(commit.getCommitShortInfo().getAuthoredDate()); |
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.
Please check for more than just not null
. There is a known expected value that isn't going to change over time. Check for the correct value and that the two methods return the same value.
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.
Thanks for contributing!
Minor change to test data.
Also, there are other tests that return commit info. Please add some checks to other tests to verify this fix works on exiting tests and data.
@lower-case |
Description
Fixes #883
Method
GHAuthor.getDate()
was giving null because thedate
field was overridden in deprecated GHAuthor class but the field was populated only inGitUser
class.Before submitting a PR:
We love getting PRs, but we hate asking people for the same basic changes every time.
master
. Create your PR from that branch.mvn clean compile
locally. This may reformat your code, commit those changes.mvn -D enable-ci clean install site
locally. If this command doesn't succeed, your change will not pass CI.When creating a PR: