File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,4 +101,20 @@ encoded string. This is the default if nothing is passed.
101101
102102Return the raw blob data.
103103
104+ ## Commits, Commit comparison, and Pull Requests
105+
106+ The Commit, Commit Comparison, and Pull Request resources support
107+ [ diff] [ git-diff ] and [ patch] [ git-patch ] formats:
108+
109+ ### diff
110+
111+ application/vnd.github.VERSION.diff
112+
113+ ### patch
114+
115+ application/vnd.github.VERSION.patch
116+
117+
104118[ gfm ] :http://github.github.com/github-flavored-markdown/
119+ [ git-diff ] : http://git-scm.com/docs/git-diff
120+ [ git-patch ] : http://git-scm.com/docs/git-format-patch
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ is `open`.
5555<%= headers 200 %>
5656<%= json : full_pull %>
5757
58+ Pass the appropriate [ media type] ( /v3/media/#commits-commit-comparison-and-pull-requests ) to fetch diff and patch formats.
59+
5860## Create a pull request
5961
6062 POST /repos/:owner/:repo/pulls
Original file line number Diff line number Diff line change 5151<%= headers 200 %>
5252<%= json(: full_commit ) %>
5353
54- Note: Diffs with binary data will have no 'patch' property.
54+ Note: Diffs with binary data will have no 'patch' property. Pass the
55+ appropriate [ media type] ( /v3/media/#commits-commit-comparison-and-pull-requests ) to fetch diff and
56+ patch formats.
5557
5658## Compare two commits
5759
@@ -60,3 +62,5 @@ Note: Diffs with binary data will have no 'patch' property.
6062### Response
6163
6264<%= json : commit_comparison %>
65+
66+ Pass the appropriate [ media type] ( /v3/media/#commits-commit-comparison-and-pull-requests ) to fetch diff and patch formats.
You can’t perform that action at this time.
0 commit comments