@@ -44,7 +44,8 @@ Here's a table that matches up the provided `GitHubType`s with their correspondi
44
44
| ---------------| --------------------------------------------------------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
45
45
| ` Owner ` | login, e.g. ` "octocat" ` | [ organizations] ( https://developer.github.com/v3/orgs/ ) , [ users] ( https://developer.github.com/v3/users/ ) |
46
46
| ` Repo ` | full_name, e.g. ` "JuliaWeb/GitHub.jl" ` | [ repositories] ( https://developer.github.com/v3/repos/ ) |
47
- | ` Commit ` | sha, e.g. ` "d069993b320c57b2ba27336406f6ec3a9ae39375" ` | [ repository commits] ( https://developer.github.com/v3/repos/commits/ ) |
47
+ | ` Commit ` | sha, e.g. ` "d069993b320c57b2ba27336406f6ec3a9ae39375" ` | [ repository commits] ( https://developer.github.com/v3/repos/commits/ ) |
48
+ | ` GitCommit ` | sha, e.g. ` "d069993b320c57b2ba27336406f6ec3a9ae39375" ` | [ raw git commits] ( https://developer.github.com/v3/git/commits/ ) |
48
49
| ` Branch ` | name, e.g. ` master ` | [ repository branches] ( https://developer.github.com/v3/repos/#get-branch ) |
49
50
| ` Content ` | path, e.g. ` "src/owners/owners.jl" ` | [ repository contents] ( https://developer.github.com/v3/repos/contents/ ) |
50
51
| ` Comment ` | id, e.g. ` 162224613 ` | [ commit comments] ( https://developer.github.com/v3/repos/comments/ ) , [ issue comments] ( https://developer.github.com/v3/issues/comments/ ) , [ PR review comments] ( https://developer.github.com/v3/pulls/comments/ ) |
@@ -54,6 +55,11 @@ Here's a table that matches up the provided `GitHubType`s with their correspondi
54
55
| ` Team ` | id, e.g. ` 1 ` | [ teams] ( https://developer.github.com/v3/orgs/teams ) |
55
56
| ` Gist ` | id, e.g. ` 0bace7cc774df4b3a4b0ee9aaa271ef6 ` | [ gists] ( https://developer.github.com/v3/gists ) |
56
57
| ` Review ` | id, e.g. ` 1 ` | [ reviews] ( https://developer.github.com/v3/pulls/reviews/ ) |
58
+ | ` Blob ` | sha, e.g. ` "95c8d1aa2a7b1e6d672e15b67e0df4abbe57dcbe" ` | [ raw git blobs] ( https://developer.github.com/v3/git/blobs/ )
59
+ | ` Tree ` | sha, e.g. ` "78e524d5e979e326a7c144ce195bf94ca9b04fa0" ` | [ raw git trees] ( https://developer.github.com/v3/git/trees/ )
60
+ | ` Tag ` | tag name, e.g. ` v1.0 ` | [ git tags] ( https://developer.github.com/v3/git/tags/ )
61
+ | ` References ` | reference name, e.g. ` heads/master ` (note: omits leading ` refs/ ` ) | [ git tags] ( https://developer.github.com/v3/git/refs/ )
62
+
57
63
58
64
You can inspect which fields are available for a type ` G<:GitHubType ` by calling ` fieldnames(G) ` .
59
65
@@ -182,8 +188,28 @@ GitHub.jl implements a bunch of methods that make REST requests to GitHub's API.
182
188
| ` starred_gists() ` | ` Tuple{Vector{Gist}, Dict} ` | [ get the starred ` gist ` s] ( https://developer.github.com/v3/gists/#list-starred-gists ) |
183
189
| ` unstar_gist(gist) ` | ` HTTP.Response ` | [ unstar ` gist ` ] ( https://developer.github.com/v3/gists/#unstar-a-gist ) |
184
190
185
- #### GitHub Apps
191
+ #### Git Data
186
192
193
+ | method | return type | documentation |
194
+ | ------------------------------------------| ------------------------------------| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
195
+ | ` blob(repo, sha) ` | ` Blob ` | [ Look up a blob in the ` repo ` by its SHA] ( https://developer.github.com/v3/git/blobs/#get-a-blob ) |
196
+ | ` create_blob(repo) ` | ` Blob ` | [ Create a blob in the ` repo ` ] ( https://developer.github.com/v3/git/blobs/#create-a-blob ) |
197
+ | ` gitcommit(repo, sha) ` | ` GitCommit ` | [ Look up a commit in the ` repo ` by its SHA] ( https://developer.github.com/v3/git/commits/#get-a-commit ) |
198
+ | ` create_gitcommit(repo) ` | ` GitCommit ` | [ Create a commit in the ` repo ` ] ( https://developer.github.com/v3/git/commits/#create-a-commit ) |
199
+ | ` tree(repo, sha) ` | ` Tree ` | [ Look up a tree in the ` repo ` by its SHA] ( https://developer.github.com/v3/git/trees/#get-a-tree ) |
200
+ | ` create_tree(repo) ` | ` Tree ` | [ Create a tree in the ` repo ` ] ( https://developer.github.com/v3/git/trees/create-a-tree ) |
201
+ | ` tag(repo, sha) ` | ` Tag ` | [ Look up a tag in the ` repo ` by its name] ( https://developer.github.com/v3/git/tag/#get-a-tag ) |
202
+ | ` create_tag(repo) ` | ` Tag ` | [ Create a tag in the ` repo ` ] (
203
+ https://developer.github.com/v3/git/tag/#create-a-tag ) |
204
+ | ` reference(repo, name) ` | ` Reference ` | [ Look up a ref in the ` repo ` by its name] ( https://developer.github.com/v3/git/refs/#get-a-reference ) |
205
+ | ` references(repo) ` | ` Vector{Reference} ` | [ Get all ` refs ` of the repo] ( https://developer.github.com/v3/git/refs/#get-all-references ) |
206
+ | ` create_reference(repo) ` | ` Reference ` | [ Create a reference in the ` repo ` ] ( https://developer.github.com/v3/git/refs/#create-a-reference ) |
207
+ | ` update_reference(repo) ` | ` Reference ` | [ Update a reference in the ` repo ` ] ( https://developer.github.com/v3/git/refs/#create-a-reference ) |
208
+ | ` delete_reference(repo) ` | ` GitCommit ` | [ Delete a the ` repo ` ] ( https://developer.github.com/v3/git/refs/#delete-a-reference ) |
209
+ | ` tag(repo) ` | ` Reference ` | [ Update a reference in the ` repo ` ] ( https://developer.github.com/v3/git/refs/#create-a-reference ) |
210
+ | ` delete_reference(repo) ` | ` GitCommit ` | [ Delete a the ` repo ` ] ( https://developer.github.com/v3/git/refs/#delete-a-reference ) |
211
+
212
+ #### GitHub Apps
187
213
| method | return type | documentation |
188
214
| ------------------------------------------| ------------------------------------| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
189
215
| ` app(id) ` | ` App ` | [ get the GitHub app with the specified ` id ` ] ( https://developer.github.com/v3/apps/#get-a-single-github-app ) |
@@ -192,6 +218,7 @@ GitHub.jl implements a bunch of methods that make REST requests to GitHub's API.
192
218
| ` installations(auth) ` | ` Vector{Installation} ` | [ get the installations for the GitHub app authenticated by the corresponding ` auth ` ] ( https://developer.github.com/v3/apps/#find-installations ) |
193
219
| ` repos(i::Installation) ` | ` Tuple{Vector{Repo}, Dict} ` | [ get the active repositories for this installation] ( https://developer.github.com/v3/apps/#find-installations ) |
194
220
221
+
195
222
#### Miscellaneous
196
223
197
224
| method | return type | documentation |
0 commit comments