Feature/get pull request patch by TomMD · Pull Request #325 · haskell-github/github · GitHub
Skip to content

Feature/get pull request patch#325

Closed
TomMD wants to merge 6 commits intohaskell-github:masterfrom
TomMD:feature/getPullRequestPatch
Closed

Feature/get pull request patch#325
TomMD wants to merge 6 commits intohaskell-github:masterfrom
TomMD:feature/getPullRequestPatch

Conversation

@TomMD
Copy link
Copy Markdown
Contributor

@TomMD TomMD commented May 10, 2018

The patch target, much like the diff target, is accessible just by changing the header.

@TomMD
Copy link
Copy Markdown
Contributor Author

TomMD commented Feb 4, 2019

@phadej
Copy link
Copy Markdown
Contributor

phadej commented Feb 4, 2019

@TomMD thanks for the ping. Yes, I'll go through the PRs and make new release, let's see if this applies cleanly as is.

-- See <https://developer.github.com/v3/pulls/#get-a-single-pull-request>
pullRequestDiffR :: Name Owner -> Name Repo -> Id PullRequest -> Request k ByteString
pullRequestDiffR user repo prid =
RawHeaderQuery
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this header still required?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok. I see, we need this to get ByteString. I'd prefer a concrete sum type for Diff, Patch and sha from https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests

@phadej
Copy link
Copy Markdown
Contributor

phadej commented Feb 17, 2019

@phadej phadej closed this Feb 17, 2019
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