Skip to content
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

Make fileBlobUrl and fileRawUrl optional; Fix #339. #340

Merged
merged 3 commits into from
Feb 4, 2019

Conversation

scott-fleischman
Copy link
Contributor

@scott-fleischman scott-fleischman commented Oct 30, 2018

This is a breaking change to the File type.

These fields are null for the diff api when a commit removes a submodule.

Add test that uses the repository I created to test this issue.

Remove two redundant imports to fix warnings.

These fields are null for the diff api when a commit removes a submodule.

Add test that uses the repository I created to test this issue.

Remove two redundant imports due to fix warnings.
@scott-fleischman
Copy link
Contributor Author

This resolves #339

@@ -184,9 +184,9 @@ instance NFData GitUser where rnf = genericRnf
instance Binary GitUser

data File = File
{ fileBlobUrl :: !URL
{ fileBlobUrl :: !(Maybe URL)
Copy link
Contributor

Choose a reason for hiding this comment

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

won't we be on safer ground if FromJSON instance is changed to use :? for changed fields?

Otherwise LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Added in b4422b0

@scott-fleischman
Copy link
Contributor Author

@phadej Would you mind merging this or letting me know what needs changing? Currently we are using a fork of this project.

@phadej phadej merged commit 6ac12e4 into haskell-github:master Feb 4, 2019
@scott-fleischman scott-fleischman deleted the issue-339 branch February 4, 2019 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants