Skip to content
This repository
Browse code

Merge branch 'master' of github.com:servalproject/PyGithub

  • Loading branch information...
commit 9053b07425de7b29a480fcf80fc1d6dccaad54aa 2 parents d02437f + cabc55d
Andrew Bettison quixotique authored

Showing 56 changed files with 3,126 additions and 273 deletions. Show diff stats Hide diff stats

  1. +21 1 ReadMe.md
  2. +258 18 codegen/JsonDescriptionOfGithubApiV3/description.human_readable.json
  3. +1,499 180 codegen/JsonDescriptionOfGithubApiV3/description.normalized.json
  4. +2 2 codegen/generate.py
  5. +2 1  codegen/generate_reference_of_apis.py
  6. +0 5 codegen/templates/GithubObject.py
  7. +1 1  codegen/templates/ReferenceOfClasses.Type.md
  8. +45 4 codegen/templates/ReferenceOfClasses.md
  9. +88 10 doc/ReferenceOfApis.md
  10. +123 5 doc/ReferenceOfClasses.md
  11. +84 0 github/AuthenticatedUser.py
  12. +34 0 github/Commit.py
  13. +80 0 github/CommitStatus.py
  14. +78 0 github/ContentFile.py
  15. +13 2 github/Github.py
  16. +54 0 github/HookDescription.py
  17. +28 0 github/NamedUser.py
  18. +1 1  github/Organization.py
  19. +48 1 github/PullRequest.py
  20. +132 7 github/Repository.py
  21. +28 15 github/Requester.py
  22. +2 0  publish.sh
  23. +1 1  setup.py
  24. +18 0 test/AuthenticatedUser.py
  25. +14 0 test/Commit.py
  26. +34 0 test/CommitStatus.py
  27. +33 0 test/ContentFile.py
  28. +18 19 test/Framework.py
  29. +8 0 test/Github.py
  30. +2 0  test/IntegrationTest.py
  31. +6 0 test/NamedUser.py
  32. +11 0 test/PullRequest.py
  33. +45 0 test/ReplayData/AuthenticatedUser.testStarring.txt
  34. +45 0 test/ReplayData/AuthenticatedUser.testSubscriptions.txt
  35. +5 0 test/ReplayData/Commit.testCreateStatusWithAllParameters.txt
  36. +5 0 test/ReplayData/Commit.testCreateStatusWithoutOptionalParameters.txt
  37. +20 0 test/ReplayData/CommitStatus.setUp.txt
  38. +15 0 test/ReplayData/ContentFile.setUp.txt
  39. +5 0 test/ReplayData/Github.testGetHooks.txt
  40. +10 0 test/ReplayData/NamedUser.testGetStarred.txt
  41. +5 0 test/ReplayData/NamedUser.testGetSubscriptions.txt
  42. +5 0 test/ReplayData/PullRequest.testCreateIssueComment.txt
  43. +5 0 test/ReplayData/PullRequest.testGetIssueComment.txt
  44. +5 0 test/ReplayData/PullRequest.testGetIssueComments.txt
  45. +45 0 test/ReplayData/Repository.testAssignees.txt
  46. +15 0 test/ReplayData/Repository.testDelete.txt
  47. +20 0 test/ReplayData/Repository.testGetArchiveLink.txt
  48. +5 0 test/ReplayData/Repository.testGetBranch.txt
  49. +10 0 test/ReplayData/Repository.testGetContents.txt
  50. +15 0 test/ReplayData/Repository.testGetStargazers.txt
  51. +5 0 test/ReplayData/Repository.testGetSubscribers.txt
  52. +5 0 test/ReplayData/Repository.testMergeWithConflict.txt
  53. +5 0 test/ReplayData/Repository.testMergeWithMessage.txt
  54. +5 0 test/ReplayData/Repository.testMergeWithNothingToDo.txt
  55. +5 0 test/ReplayData/Repository.testMergeWithoutMessage.txt
  56. +55 0 test/Repository.py
22 ReadMe.md
Source Rendered
@@ -48,13 +48,33 @@ Projects using PyGithub
48 48
49 49 ([Open an issue](https://github.com/jacquev6/PyGithub/issues) if you want to be listed here, I'll be glad to add your project)
50 50
  51 +* [Upverter](https://upverter.com) is a web-based schematic capture and PCB layout tool for people who design electronics. Designers can attach a Github project to an Upverter project.
51 52 * [Tratihubis](http://pypi.python.org/pypi/tratihubis/) converts Trac tickets to Github issues
52 53
53 54 History
54 55 =======
55 56
  57 +[Version 1.6](https://github.com/jacquev6/PyGithub/issues?milestone=10&state=closed) (September 8th, 2012)
  58 +----------------------------------------------------------------------------------------------------------
  59 +
  60 +* Restore support for Python 2.5
  61 +* Implement new APIS:
  62 + * /hooks (undocumented, but mentioned in http://developer.github.com/v3/repos/hooks/#create-a-hook)
  63 + * [Merging](http://developer.github.com/v3/repos/merging/)
  64 + * [Starring](http://developer.github.com/v3/repos/starring/) and [subscriptions](http://developer.github.com/v3/repos/watching/)
  65 + * [Assignees](http://developer.github.com/v3/issues/assignees/)
  66 + * [Commit statuses](http://developer.github.com/v3/repos/statuses/)
  67 + * [Contents](http://developer.github.com/v3/repos/contents/), thank you [berndca](https://github.com/berndca) for asking
  68 +* Clarify issue and review comments on PullRequest, thank you [nixoz2k7](https://github.com/nixoz2k7) for asking
  69 +
  70 +[Version 1.5](https://github.com/jacquev6/PyGithub/issues?milestone=9&state=closed) (September 5th, 2012)
  71 +---------------------------------------------------------------------------------------------------------
  72 +
  73 +* Add a timeout option, thank you much [xobb1t](https://github.com/xobb1t) for the merge request. *This drops Python 2.5 support*. I may be able to restore it in next version.
  74 +* Implement `Repository.delete`, thank you [pmchen](https://github.com/pmchen) for asking
  75 +
56 76 [Version 1.4](https://github.com/jacquev6/PyGithub/issues?milestone=8&state=closed) (August 4th, 2012)
57   ------------------------------------------------------------------------------------------------------
  77 +------------------------------------------------------------------------------------------------------
58 78
59 79 * Allow connection to a custom Github URL, for Github Enterprise, thank you very much [engie](https://github.com/engie) for the merge request
60 80
276 codegen/JsonDescriptionOfGithubApiV3/description.human_readable.json
... ... @@ -1,6 +1,15 @@
1 1 {
2 2 "classes": [
3 3 {
  4 + "name": "HookDescription",
  5 + "attributes": [
  6 + { "name": "supported_events", "type": "list:string" },
  7 + { "name": "events", "type": "list:string" },
  8 + { "name": "name", "type": "string" },
  9 + { "name": "schema", "type": "list:list:string" }
  10 + ]
  11 + },
  12 + {
4 13 "name": "Plan",
5 14 "attributes": [
6 15 { "name": "collaborators", "type": "integer" },
@@ -12,7 +21,7 @@
12 21 {
13 22 "name": "AuthenticatedUser",
14 23 "url": [
15   - { "type": "constant", "value": "https://api.github.com/user" }
  24 + { "type": "constant", "value": "/user" }
16 25 ],
17 26 "edit": {
18 27 "optionalParameters": [
@@ -58,7 +67,7 @@
58 67 "singularName": "authorization",
59 68 "type": "Authorization",
60 69 "url": [
61   - { "type": "constant", "value": "https://api.github.com/authorizations" }
  70 + { "type": "constant", "value": "/authorizations" }
62 71 ],
63 72 "createElement": {
64 73 "optionalParameters": [
@@ -77,20 +86,20 @@
77 86 "singularName": "event",
78 87 "type": "Event",
79 88 "getList": true,
80   - "url": [ { "type": "constant", "value": "https://api.github.com/events" } ]
  89 + "url": [ { "type": "constant", "value": "/events" } ]
81 90 },
82 91 {
83 92 "name": "issues",
84 93 "singularName": "issue",
85 94 "type": "Issue",
86 95 "getList": true,
87   - "url": [ { "type": "constant", "value": "https://api.github.com/issues" } ]
  96 + "url": [ { "type": "constant", "value": "/issues" } ]
88 97 },
89 98 {
90 99 "name": "keys",
91 100 "singularName": "key",
92 101 "type": "UserKey",
93   - "url": [ { "type": "constant", "value": "https://api.github.com/user/keys" } ],
  102 + "url": [ { "type": "constant", "value": "/user/keys" } ],
94 103 "getList": true,
95 104 "getElement": {
96 105 "parameter": { "name": "id", "type": "integer" }
@@ -116,7 +125,7 @@
116 125 "getElement": {
117 126 "parameter": { "name": "name", "type": "string" },
118 127 "url": [
119   - { "type": "constant", "value": "https://api.github.com/repos/" },
  128 + { "type": "constant", "value": "/repos/" },
120 129 { "type": "attribute", "value": [ "login" ] },
121 130 { "type": "constant", "value": "/" },
122 131 { "type": "argument", "value": [ "name" ] }
@@ -154,6 +163,24 @@
154 163 "removeElement": true
155 164 },
156 165 {
  166 + "name": "subscriptions",
  167 + "singularName": "subscription",
  168 + "type": "Repository",
  169 + "getList": true,
  170 + "hasElement": true,
  171 + "addElement": true,
  172 + "removeElement": true
  173 + },
  174 + {
  175 + "name": "starred",
  176 + "singularName": "starred",
  177 + "type": "Repository",
  178 + "getList": true,
  179 + "hasElement": true,
  180 + "addElement": true,
  181 + "removeElement": true
  182 + },
  183 + {
157 184 "name": "following",
158 185 "singularName": "following",
159 186 "type": "NamedUser",
@@ -189,7 +216,7 @@
189 216 ]
190 217 },
191 218 "url": [
192   - { "type": "constant", "value": "https://api.github.com/gists" }
  219 + { "type": "constant", "value": "/gists" }
193 220 ]
194 221 }
195 222 ],
@@ -204,7 +231,7 @@
204 231 "request": {
205 232 "verb": "POST",
206 233 "url": [
207   - { "type": "constant", "value": "https://api.github.com/repos/" },
  234 + { "type": "constant", "value": "/repos/" },
208 235 { "type": "argument", "value": [ "repo", "owner", "login" ] },
209 236 { "type": "constant", "value": "/" },
210 237 { "type": "argument", "value": [ "repo", "name" ] },
@@ -223,7 +250,7 @@
223 250 "request": {
224 251 "verb": "GET",
225 252 "url": [
226   - { "type": "constant", "value": "https://api.github.com/users/" },
  253 + { "type": "constant", "value": "/users/" },
227 254 { "type": "attribute", "value": [ "login" ] },
228 255 { "type": "constant", "value": "/events/orgs/" },
229 256 { "type": "argument", "value": [ "org", "login" ] }
@@ -238,7 +265,7 @@
238 265 "request": {
239 266 "verb": "GET",
240 267 "url": [
241   - { "type": "constant", "value": "https://api.github.com/gists/starred" }
  268 + { "type": "constant", "value": "/gists/starred" }
242 269 ],
243 270 "information": "status"
244 271 }
@@ -292,6 +319,30 @@
292 319 ]
293 320 },
294 321 {
  322 + "name": "CommitStatus",
  323 + "attributes": [
  324 + { "name": "created_at", "type": "datetime" },
  325 + { "name": "updated_at", "type": "datetime" },
  326 + { "name": "state", "type": "string" },
  327 + { "name": "target_url", "type": "string" },
  328 + { "name": "description", "type": "string" },
  329 + { "name": "id", "type": "integer" },
  330 + { "name": "creator", "type": "NamedUser" }
  331 + ]
  332 + },
  333 + {
  334 + "name": "ContentFile",
  335 + "attributes": [
  336 + { "name": "type", "type": "string" },
  337 + { "name": "encoding", "type": "string" },
  338 + { "name": "size", "type": "integer" },
  339 + { "name": "name", "type": "string" },
  340 + { "name": "path", "type": "string" },
  341 + { "name": "content", "type": "string" },
  342 + { "name": "sha", "type": "string" }
  343 + ]
  344 + },
  345 + {
295 346 "name": "File",
296 347 "attributes": [
297 348 { "name": "additions", "type": "integer" },
@@ -333,6 +384,26 @@
333 384 { "name": "position", "type": "integer" }
334 385 ]
335 386 }
  387 + },
  388 + {
  389 + "name": "statuses",
  390 + "singularName": "status",
  391 + "type": "CommitStatus",
  392 + "getList": true,
  393 + "createElement": {
  394 + "mandatoryParameters": [
  395 + { "name": "state", "type": "string" }
  396 + ],
  397 + "optionalParameters": [
  398 + { "name": "target_url", "type": "string" },
  399 + { "name": "description", "type": "string" }
  400 + ]
  401 + },
  402 + "url": [
  403 + { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
  404 + { "type": "constant", "value": "/statuses/" },
  405 + { "type": "attribute", "value": [ "sha" ] }
  406 + ]
336 407 }
337 408 ],
338 409 "identity": [
@@ -455,7 +526,7 @@
455 526 "getElement": {
456 527 "parameter": { "name": "id", "type": "integer" },
457 528 "url": [
458   - { "type": "constant", "value": "https://api.github.com/gists/comments/" },
  529 + { "type": "constant", "value": "/gists/comments/" },
459 530 {
460 531 "type": "stringOf",
461 532 "value": [ { "type": "argument", "value": [ "id" ] } ]
@@ -629,7 +700,7 @@
629 700 {
630 701 "name": "GitAuthor",
631 702 "attributes": [
632   - { "name": "date", "type": "string" },
  703 + { "name": "date", "type": "datetime" },
633 704 { "name": "email", "type": "string" },
634 705 { "name": "name", "type": "string" }
635 706 ]
@@ -930,7 +1001,7 @@
930 1001 "getElement": {
931 1002 "parameter": { "name": "name", "type": "string" },
932 1003 "url": [
933   - { "type": "constant", "value": "https://api.github.com/repos/" },
  1004 + { "type": "constant", "value": "/repos/" },
934 1005 { "type": "attribute", "value": [ "login" ] },
935 1006 { "type": "constant", "value": "/" },
936 1007 { "type": "argument", "value": [ "name" ] }
@@ -944,6 +1015,18 @@
944 1015 "getList": true
945 1016 },
946 1017 {
  1018 + "name": "subscriptions",
  1019 + "singularName": "subscription",
  1020 + "type": "Repository",
  1021 + "getList": true
  1022 + },
  1023 + {
  1024 + "name": "starred",
  1025 + "singularName": "starred",
  1026 + "type": "Repository",
  1027 + "getList": true
  1028 + },
  1029 + {
947 1030 "name": "orgs",
948 1031 "singularName": "org",
949 1032 "type": "Organization",
@@ -1078,7 +1161,7 @@
1078 1161 "getElement": {
1079 1162 "parameter": { "name": "name", "type": "string" },
1080 1163 "url": [
1081   - { "type": "constant", "value": "https://api.github.com/repos/" },
  1164 + { "type": "constant", "value": "/repos/" },
1082 1165 { "type": "attribute", "value": [ "login" ] },
1083 1166 { "type": "constant", "value": "/" },
1084 1167 { "type": "argument", "value": [ "name" ] }
@@ -1116,7 +1199,7 @@
1116 1199 "getElement": {
1117 1200 "parameter": { "name": "id", "type": "integer" },
1118 1201 "url" : [
1119   - { "type": "constant", "value": "https://api.github.com/teams/" },
  1202 + { "type": "constant", "value": "/teams/" },
1120 1203 {
1121 1204 "type": "stringOf",
1122 1205 "value": [ { "type": "argument", "value": [ "id" ] } ]
@@ -1136,7 +1219,7 @@
1136 1219 "request": {
1137 1220 "verb": "POST",
1138 1221 "url": [
1139   - { "type": "constant", "value": "https://api.github.com/repos/" },
  1222 + { "type": "constant", "value": "/repos/" },
1140 1223 { "type": "argument", "value": [ "repo", "owner", "login" ] },
1141 1224 { "type": "constant", "value": "/" },
1142 1225 { "type": "argument", "value": [ "repo", "name" ] },
@@ -1242,6 +1325,49 @@
1242 1325 }
1243 1326 },
1244 1327 {
  1328 + "name": "issue_comments",
  1329 + "singularName": "issue_comment",
  1330 + "type": "IssueComment",
  1331 + "getList": {
  1332 + "request": {
  1333 + "url": [
  1334 + { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
  1335 + { "type": "constant", "value": "/issues/" },
  1336 + { "type": "stringOf", "value": [ { "type": "attribute", "value": [ "number" ] } ] },
  1337 + { "type": "constant", "value": "/comments" }
  1338 + ]
  1339 + }
  1340 + },
  1341 + "getElement": {
  1342 + "parameter": { "name": "id", "type": "integer" },
  1343 + "request": {
  1344 + "url": [
  1345 + { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
  1346 + { "type": "constant", "value": "/issues/comments/" },
  1347 + {
  1348 + "type": "stringOf",
  1349 + "value": [
  1350 + { "type": "argument", "value": [ "id" ] }
  1351 + ]
  1352 + }
  1353 + ]
  1354 + }
  1355 + },
  1356 + "createElement": {
  1357 + "mandatoryParameters": [
  1358 + { "name": "body", "type": "string" }
  1359 + ],
  1360 + "request": {
  1361 + "url": [
  1362 + { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
  1363 + { "type": "constant", "value": "/issues/" },
  1364 + { "type": "stringOf", "value": [ { "type": "attribute", "value": [ "number" ] } ] },
  1365 + { "type": "constant", "value": "/comments" }
  1366 + ]
  1367 + }
  1368 + }
  1369 + },
  1370 + {
1245 1371 "name": "commits",
1246 1372 "singularName": "commit",
1247 1373 "type": "Commit",
@@ -1354,6 +1480,7 @@
1354 1480 { "name": "has_downloads", "type": "bool" }
1355 1481 ]
1356 1482 },
  1483 + "delete": true,
1357 1484 "attributes": [
1358 1485 { "name": "clone_url", "type": "string" },
1359 1486 { "name": "created_at", "type": "datetime" },
@@ -1391,7 +1518,10 @@
1391 1518 "name": "branches",
1392 1519 "singularName": "branch",
1393 1520 "type": "Branch",
1394   - "getList": true
  1521 + "getList": true,
  1522 + "getElement": {
  1523 + "parameter": { "name": "branch", "type": "string" }
  1524 + }
1395 1525 },
1396 1526 {
1397 1527 "name": "collaborators",
@@ -1403,6 +1533,13 @@
1403 1533 "removeElement": true
1404 1534 },
1405 1535 {
  1536 + "name": "assignees",
  1537 + "singularName": "assignee",
  1538 + "type": "NamedUser",
  1539 + "getList": true,
  1540 + "hasElement": true
  1541 + },
  1542 + {
1406 1543 "name": "comments",
1407 1544 "singularName": "comment",
1408 1545 "type": "CommitComment",
@@ -1744,6 +1881,18 @@
1744 1881 "singularName": "watcher",
1745 1882 "type": "NamedUser",
1746 1883 "getList": true
  1884 + },
  1885 + {
  1886 + "name": "subscribers",
  1887 + "singularName": "subscriber",
  1888 + "type": "NamedUser",
  1889 + "getList": true
  1890 + },
  1891 + {
  1892 + "name": "stargazers",
  1893 + "singularName": "stargazer",
  1894 + "type": "NamedUser",
  1895 + "getList": true
1747 1896 }
1748 1897 ],
1749 1898 "additionalMethods": [
@@ -1754,7 +1903,7 @@
1754 1903 "request": {
1755 1904 "verb": "GET",
1756 1905 "url": [
1757   - { "type": "constant", "value": "https://api.github.com/networks/" },
  1906 + { "type": "constant", "value": "/networks/" },
1758 1907 { "type": "attribute", "value": [ "owner", "login" ] },
1759 1908 { "type": "constant", "value": "/" },
1760 1909 { "type": "attribute", "value": [ "name" ] },
@@ -1775,6 +1924,75 @@
1775 1924 }
1776 1925 },
1777 1926 {
  1927 + "name": [ "get", "readme" ],
  1928 + "type": "ContentFile",
  1929 + "group": "contents",
  1930 + "request": {
  1931 + "verb": "GET",
  1932 + "url": [
  1933 + { "type": "attribute", "value": [ "url" ] },
  1934 + { "type": "constant", "value": "/readme" }
  1935 + ]
  1936 + }
  1937 + },
  1938 + {
  1939 + "name": [ "get", "contents" ],
  1940 + "type": "ContentFile",
  1941 + "group": "contents",
  1942 + "mandatoryParameters": [
  1943 + { "name": "path", "type": "string" }
  1944 + ],
  1945 + "request": {
  1946 + "verb": "GET",
  1947 + "url": [
  1948 + { "type": "attribute", "value": [ "url" ] },
  1949 + { "type": "constant", "value": "/contents" },
  1950 + { "type": "argument", "value": [ "path" ] }
  1951 + ]
  1952 + }
  1953 + },
  1954 + {
  1955 + "name": [ "get", "archive", "link" ],
  1956 + "type": "string",
  1957 + "group": "contents",
  1958 + "mandatoryParameters": [
  1959 + { "name": "archive_format", "type": "string" }
  1960 + ],
  1961 + "optionalParameters": [
  1962 + { "name": "ref", "type": "string" }
  1963 + ],
  1964 + "request": {
  1965 + "verb": "GET",
  1966 + "url": [
  1967 + { "type": "attribute", "value": [ "url" ] },
  1968 + { "type": "constant", "value": "/" },
  1969 + { "type": "argument", "value": [ "archive_format" ] },
  1970 + { "type": "constant", "value": "/" },
  1971 + { "type": "argument", "value": [ "ref" ] }
  1972 + ]
  1973 + }
  1974 + },
  1975 + {
  1976 + "name": [ "merge" ],
  1977 + "type": "Commit",
  1978 + "group": "merging",
  1979 + "mandatoryParameters": [
  1980 + { "name": "base", "type": "string" },
  1981 + { "name": "head", "type": "string" }
  1982 + ],
  1983 + "optionalParameters": [
  1984 + { "name": "commit_message", "type": "string" }
  1985 + ],
  1986 + "request": {
  1987 + "verb": "POST",
  1988 + "url": [
  1989 + { "type": "attribute", "value": [ "url" ] },
  1990 + { "type": "constant", "value": "/merges" }
  1991 + ],
  1992 + "postParameters": true
  1993 + }
  1994 + },
  1995 + {
1778 1996 "name": [ "compare" ],
1779 1997 "type": "Comparison",
1780 1998 "group": "Comparison",
@@ -1792,6 +2010,28 @@
1792 2010 { "type": "argument", "value": [ "head" ] }
1793 2011 ]
1794 2012 }
  2013 + },
  2014 + {
  2015 + "name": [ "legacy", "search", "issues" ],
  2016 + "type": "list:Issue",
  2017 + "group": "issues",
  2018 + "mandatoryParameters": [
  2019 + { "name": "state", "type": "string" },
  2020 + { "name": "keyword", "type": "string" }
  2021 + ],
  2022 + "request": {
  2023 + "verb": "GET",
  2024 + "url": [
  2025 + { "type": "constant", "value": "/legacy/issues/search/" },
  2026 + { "type": "attribute", "value": [ "owner", "login" ] },
  2027 + { "type": "constant", "value": "/" },
  2028 + { "type": "attribute", "value": [ "name" ] },
  2029 + { "type": "constant", "value": "/" },
  2030 + { "type": "argument", "value": [ "state" ] },
  2031 + { "type": "constant", "value": "/" },
  2032 + { "type": "urlquote", "value": [ { "type": "argument", "value": [ "keyword" ] } ] }
  2033 + ]
  2034 + }
1795 2035 }
1796 2036 ]
1797 2037 },
1,679 codegen/JsonDescriptionOfGithubApiV3/description.normalized.json
@@ -216,7 +216,7 @@
216 216 "url": [
217 217 {
218 218 "type": "constant",
219   - "value": "https://api.github.com/user"
  219 + "value": "/user"
220 220 }
221 221 ],
222 222 "postParameters": true,
@@ -299,7 +299,7 @@
299 299 "url": [
300 300 {
301 301 "type": "constant",
302   - "value": "https://api.github.com/authorizations"
  302 + "value": "/authorizations"
303 303 }
304 304 ],
305 305 "information": "status",
@@ -359,7 +359,7 @@
359 359 "url": [
360 360 {
361 361 "type": "constant",
362   - "value": "https://api.github.com/authorizations/"
  362 + "value": "/authorizations/"
363 363 },
364 364 {
365 365 "type": "stringOf",
@@ -395,7 +395,7 @@
395 395 "url": [
396 396 {
397 397 "type": "constant",
398   - "value": "https://api.github.com/authorizations"
  398 + "value": "/authorizations"
399 399 }
400 400 ],
401 401 "information": "data",
@@ -420,7 +420,7 @@
420 420 "url": [
421 421 {
422 422 "type": "constant",
423   - "value": "https://api.github.com/events"
  423 + "value": "/events"
424 424 }
425 425 ],
426 426 "information": "data",
@@ -445,7 +445,7 @@
445 445 "url": [
446 446 {
447 447 "type": "constant",
448   - "value": "https://api.github.com/issues"
  448 + "value": "/issues"
449 449 }
450 450 ],
451 451 "information": "data",
@@ -487,7 +487,7 @@
487 487 "url": [
488 488 {
489 489 "type": "constant",
490   - "value": "https://api.github.com/user/keys"
  490 + "value": "/user/keys"
491 491 }
492 492 ],
493 493 "information": "status",
@@ -522,7 +522,7 @@
522 522 "url": [
523 523 {
524 524 "type": "constant",
525   - "value": "https://api.github.com/user/keys/"
  525 + "value": "/user/keys/"
526 526 },
527 527 {
528 528 "type": "stringOf",
@@ -558,7 +558,7 @@
558 558 "url": [
559 559 {
560 560 "type": "constant",
561   - "value": "https://api.github.com/user/keys"
  561 + "value": "/user/keys"
562 562 }
563 563 ],
564 564 "information": "data",
@@ -592,7 +592,7 @@
592 592 "url": [
593 593 {
594 594 "type": "constant",
595   - "value": "https://api.github.com/user/repos"
  595 + "value": "/user/repos"
596 596 }
597 597 ],
598 598 "information": "status",
@@ -676,7 +676,7 @@
676 676 "url": [
677 677 {
678 678 "type": "constant",
679   - "value": "https://api.github.com/repos/"
  679 + "value": "/repos/"
680 680 },
681 681 {
682 682 "type": "attribute",
@@ -717,7 +717,7 @@
717 717 "url": [
718 718 {
719 719 "type": "constant",
720   - "value": "https://api.github.com/user/repos"
  720 + "value": "/user/repos"
721 721 }
722 722 ],
723 723 "information": "data",
@@ -776,7 +776,7 @@
776 776 "url": [
777 777 {
778 778 "type": "constant",
779   - "value": "https://api.github.com/user/emails"
  779 + "value": "/user/emails"
780 780 }
781 781 ],
782 782 "information": "status",
@@ -802,7 +802,7 @@
802 802 "url": [
803 803 {
804 804 "type": "constant",
805   - "value": "https://api.github.com/user/emails"
  805 + "value": "/user/emails"
806 806 }
807 807 ],
808 808 "information": "data",
@@ -836,7 +836,7 @@
836 836 "url": [
837 837 {
838 838 "type": "constant",
839   - "value": "https://api.github.com/user/emails"
  839 + "value": "/user/emails"
840 840 }
841 841 ],
842 842 "information": "status",
@@ -872,7 +872,7 @@
872 872 "url": [
873 873 {
874 874 "type": "constant",
875   - "value": "https://api.github.com/user/watched/"
  875 + "value": "/user/watched/"
876 876 },
877 877 {
878 878 "type": "identity",
@@ -903,7 +903,7 @@
903 903 "url": [
904 904 {
905 905 "type": "constant",
906   - "value": "https://api.github.com/user/watched"
  906 + "value": "/user/watched"
907 907 }
908 908 ],
909 909 "information": "data",
@@ -938,7 +938,7 @@
938 938 "url": [
939 939 {
940 940 "type": "constant",
941   - "value": "https://api.github.com/user/watched/"
  941 + "value": "/user/watched/"
942 942 },
943 943 {
944 944 "type": "identity",
@@ -979,7 +979,7 @@
979 979 "url": [
980 980 {
981 981 "type": "constant",
982   - "value": "https://api.github.com/user/watched/"
  982 + "value": "/user/watched/"
983 983 },
984 984 {
985 985 "type": "identity",
@@ -1000,32 +1000,32 @@
1000 1000 }
1001 1001 },
1002 1002 {
1003   - "group": "following",
  1003 + "group": "subscriptions",
1004 1004 "name": [
1005 1005 "add",
1006 1006 "to",
1007   - "following"
  1007 + "subscriptions"
1008 1008 ],
1009 1009 "mandatoryParameters": [
1010 1010 {
1011 1011 "type": {
1012 1012 "simple": false,
1013 1013 "cardinality": "scalar",
1014   - "name": "NamedUser"
  1014 + "name": "Repository"
1015 1015 },
1016   - "name": "following"
  1016 + "name": "subscription"
1017 1017 }
1018 1018 ],
1019 1019 "request": {
1020 1020 "url": [
1021 1021 {
1022 1022 "type": "constant",
1023   - "value": "https://api.github.com/user/following/"
  1023 + "value": "/user/subscriptions/"
1024 1024 },
1025 1025 {
1026 1026 "type": "identity",
1027 1027 "value": [
1028   - "following"
  1028 + "subscription"
1029 1029 ]
1030 1030 }
1031 1031 ],
@@ -1041,17 +1041,17 @@
1041 1041 }
1042 1042 },
1043 1043 {
1044   - "group": "following",
  1044 + "group": "subscriptions",
1045 1045 "name": [
1046 1046 "get",
1047   - "following"
  1047 + "subscriptions"
1048 1048 ],
1049 1049 "mandatoryParameters": [],
1050 1050 "request": {
1051 1051 "url": [
1052 1052 {
1053 1053 "type": "constant",
1054   - "value": "https://api.github.com/user/following"
  1054 + "value": "/user/subscriptions"
1055 1055 }
1056 1056 ],
1057 1057 "information": "data",
@@ -1062,36 +1062,36 @@
1062 1062 "type": {
1063 1063 "simple": false,
1064 1064 "cardinality": "list",
1065   - "name": "NamedUser"
  1065 + "name": "Repository"
1066 1066 }
1067 1067 },
1068 1068 {
1069   - "group": "following",
  1069 + "group": "subscriptions",
1070 1070 "name": [
1071 1071 "has",
1072 1072 "in",
1073   - "following"
  1073 + "subscriptions"
1074 1074 ],
1075 1075 "mandatoryParameters": [
1076 1076 {
1077 1077 "type": {
1078 1078 "simple": false,
1079 1079 "cardinality": "scalar",
1080   - "name": "NamedUser"
  1080 + "name": "Repository"
1081 1081 },
1082   - "name": "following"
  1082 + "name": "subscription"
1083 1083 }
1084 1084 ],
1085 1085 "request": {
1086 1086 "url": [
1087 1087 {
1088 1088 "type": "constant",
1089   - "value": "https://api.github.com/user/following/"
  1089 + "value": "/user/subscriptions/"
1090 1090 },
1091 1091 {
1092 1092 "type": "identity",
1093 1093 "value": [
1094   - "following"
  1094 + "subscription"
1095 1095 ]
1096 1096 }
1097 1097 ],
@@ -1107,32 +1107,32 @@
1107 1107 }
1108 1108 },
1109 1109 {
1110   - "group": "following",
  1110 + "group": "subscriptions",
1111 1111 "name": [
1112 1112 "remove",
1113 1113 "from",
1114   - "following"
  1114 + "subscriptions"
1115 1115 ],
1116 1116 "mandatoryParameters": [
1117 1117 {
1118 1118 "type": {
1119 1119 "simple": false,
1120 1120 "cardinality": "scalar",
1121   - "name": "NamedUser"
  1121 + "name": "Repository"
1122 1122 },
1123   - "name": "following"
  1123 + "name": "subscription"
1124 1124 }
1125 1125 ],
1126 1126 "request": {
1127 1127 "url": [
1128 1128 {
1129 1129 "type": "constant",
1130   - "value": "https://api.github.com/user/following/"
  1130 + "value": "/user/subscriptions/"
1131 1131 },
1132 1132 {
1133 1133 "type": "identity",
1134 1134 "value": [
1135   - "following"
  1135 + "subscription"
1136 1136 ]
1137 1137 }
1138 1138 ],
@@ -1148,42 +1148,58 @@
1148 1148 }
1149 1149 },
1150 1150 {
1151   - "group": "followers",
  1151 + "group": "starred",
1152 1152 "name": [
1153   - "get",
1154   - "followers"
  1153 + "add",
  1154 + "to",
  1155 + "starred"
  1156 + ],
  1157 + "mandatoryParameters": [
  1158 + {
  1159 + "type": {
  1160 + "simple": false,
  1161 + "cardinality": "scalar",
  1162 + "name": "Repository"
  1163 + },
  1164 + "name": "starred"
  1165 + }
1155 1166 ],
1156   - "mandatoryParameters": [],
1157 1167 "request": {
1158 1168 "url": [
1159 1169 {
1160 1170 "type": "constant",
1161   - "value": "https://api.github.com/user/followers"
  1171 + "value": "/user/starred/"
  1172 + },
  1173 + {
  1174 + "type": "identity",
  1175 + "value": [
  1176 + "starred"
  1177 + ]
1162 1178 }
1163 1179 ],
1164   - "information": "data",
1165   - "verb": "GET"
  1180 + "information": "status",
  1181 + "verb": "PUT"
1166 1182 },
1167 1183 "isMutation": false,
1168 1184 "optionalParameters": [],
1169 1185 "type": {
1170   - "simple": false,
1171   - "cardinality": "list",
1172   - "name": "NamedUser"
  1186 + "simple": true,
  1187 + "cardinality": "scalar",
  1188 + "name": "void"
1173 1189 }
1174 1190 },
1175 1191 {
1176   - "group": "orgs",
  1192 + "group": "starred",
1177 1193 "name": [
1178 1194 "get",
1179   - "orgs"
  1195 + "starred"
1180 1196 ],
1181 1197 "mandatoryParameters": [],
1182 1198 "request": {
1183 1199 "url": [
1184 1200 {
1185 1201 "type": "constant",
1186   - "value": "https://api.github.com/user/orgs"
  1202 + "value": "/user/starred"
1187 1203 }
1188 1204 ],
1189 1205 "information": "data",
@@ -1194,74 +1210,144 @@
1194 1210 "type": {
1195 1211 "simple": false,
1196 1212 "cardinality": "list",
1197   - "name": "Organization"
  1213 + "name": "Repository"
1198 1214 }
1199 1215 },
1200 1216 {
1201   - "group": "gists",
  1217 + "group": "starred",
1202 1218 "name": [
1203   - "create",
1204   - "gist"
  1219 + "has",
  1220 + "in",
  1221 + "starred"
1205 1222 ],
1206 1223 "mandatoryParameters": [
1207 1224 {
1208 1225 "type": {
1209   - "simple": true,
  1226 + "simple": false,
1210 1227 "cardinality": "scalar",
1211   - "name": "bool"
  1228 + "name": "Repository"
1212 1229 },
1213   - "name": "public"
1214   - },
  1230 + "name": "starred"
  1231 + }
  1232 + ],
  1233 + "request": {
  1234 + "url": [
  1235 + {
  1236 + "type": "constant",
  1237 + "value": "/user/starred/"
  1238 + },
  1239 + {
  1240 + "type": "identity",
  1241 + "value": [
  1242 + "starred"
  1243 + ]
  1244 + }
  1245 + ],
  1246 + "information": "status",
  1247 + "verb": "GET"
  1248 + },
  1249 + "isMutation": false,
  1250 + "optionalParameters": [],
  1251 + "type": {
  1252 + "simple": true,
  1253 + "cardinality": "scalar",
  1254 + "name": "bool"
  1255 + }
  1256 + },
  1257 + {
  1258 + "group": "starred",
  1259 + "name": [
  1260 + "remove",
  1261 + "from",
  1262 + "starred"
  1263 + ],
  1264 + "mandatoryParameters": [
1215 1265 {
1216 1266 "type": {
1217 1267 "simple": false,
1218   - "key_name": "string",
1219   - "cardinality": "dict",
1220   - "name": "InputFileContent"
  1268 + "cardinality": "scalar",
  1269 + "name": "Repository"
1221 1270 },
1222   - "name": "files"
  1271 + "name": "starred"
1223 1272 }
1224 1273 ],
1225 1274 "request": {
1226 1275 "url": [