Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'develop'

  • Loading branch information...
commit 1483cbb1e15a3f626db0e597146036c52c59764f 2 parents ece857f + b758b24
@jacquev6 jacquev6 authored
Showing with 3,045 additions and 261 deletions.
  1. +258 −18 codegen/JsonDescriptionOfGithubApiV3/description.human_readable.json
  2. +1,499 −180 codegen/JsonDescriptionOfGithubApiV3/description.normalized.json
  3. +2 −2 codegen/generate.py
  4. +2 −1  codegen/generate_reference_of_apis.py
  5. +0 −5 codegen/templates/GithubObject.py
  6. +1 −1  codegen/templates/ReferenceOfClasses.Type.md
  7. +45 −4 codegen/templates/ReferenceOfClasses.md
  8. +87 −10 doc/ReferenceOfApis.md
  9. +122 −9 doc/ReferenceOfClasses.md
  10. +84 −0 github/AuthenticatedUser.py
  11. +34 −0 github/Commit.py
  12. +80 −0 github/CommitStatus.py
  13. +78 −0 github/ContentFile.py
  14. +10 −0 github/Github.py
  15. +54 −0 github/HookDescription.py
  16. +28 −0 github/NamedUser.py
  17. +1 −1  github/Organization.py
  18. +48 −1 github/PullRequest.py
  19. +124 −7 github/Repository.py
  20. +16 −11 github/Requester.py
  21. +18 −0 test/AuthenticatedUser.py
  22. +14 −0 test/Commit.py
  23. +34 −0 test/CommitStatus.py
  24. +33 −0 test/ContentFile.py
  25. +5 −11 test/Framework.py
  26. +8 −0 test/Github.py
  27. +2 −0  test/IntegrationTest.py
  28. +6 −0 test/NamedUser.py
  29. +11 −0 test/PullRequest.py
  30. +45 −0 test/ReplayData/AuthenticatedUser.testStarring.txt
  31. +45 −0 test/ReplayData/AuthenticatedUser.testSubscriptions.txt
  32. +5 −0 test/ReplayData/Commit.testCreateStatusWithAllParameters.txt
  33. +5 −0 test/ReplayData/Commit.testCreateStatusWithoutOptionalParameters.txt
  34. +20 −0 test/ReplayData/CommitStatus.setUp.txt
  35. +15 −0 test/ReplayData/ContentFile.setUp.txt
  36. +5 −0 test/ReplayData/Github.testGetHooks.txt
  37. +10 −0 test/ReplayData/NamedUser.testGetStarred.txt
  38. +5 −0 test/ReplayData/NamedUser.testGetSubscriptions.txt
  39. +5 −0 test/ReplayData/PullRequest.testCreateIssueComment.txt
  40. +5 −0 test/ReplayData/PullRequest.testGetIssueComment.txt
  41. +5 −0 test/ReplayData/PullRequest.testGetIssueComments.txt
  42. +45 −0 test/ReplayData/Repository.testAssignees.txt
  43. +20 −0 test/ReplayData/Repository.testGetArchiveLink.txt
  44. +5 −0 test/ReplayData/Repository.testGetBranch.txt
  45. +10 −0 test/ReplayData/Repository.testGetContents.txt
  46. +15 −0 test/ReplayData/Repository.testGetStargazers.txt
  47. +5 −0 test/ReplayData/Repository.testGetSubscribers.txt
  48. +5 −0 test/ReplayData/Repository.testMergeWithConflict.txt
  49. +5 −0 test/ReplayData/Repository.testMergeWithMessage.txt
  50. +5 −0 test/ReplayData/Repository.testMergeWithNothingToDo.txt
  51. +5 −0 test/ReplayData/Repository.testMergeWithoutMessage.txt
  52. +51 −0 test/Repository.py
View
276 codegen/JsonDescriptionOfGithubApiV3/description.human_readable.json
@@ -1,6 +1,15 @@
{
"classes": [
{
+ "name": "HookDescription",
+ "attributes": [
+ { "name": "supported_events", "type": "list:string" },
+ { "name": "events", "type": "list:string" },
+ { "name": "name", "type": "string" },
+ { "name": "schema", "type": "list:list:string" }
+ ]
+ },
+ {
"name": "Plan",
"attributes": [
{ "name": "collaborators", "type": "integer" },
@@ -12,7 +21,7 @@
{
"name": "AuthenticatedUser",
"url": [
- { "type": "constant", "value": "https://api.github.com/user" }
+ { "type": "constant", "value": "/user" }
],
"edit": {
"optionalParameters": [
@@ -58,7 +67,7 @@
"singularName": "authorization",
"type": "Authorization",
"url": [
- { "type": "constant", "value": "https://api.github.com/authorizations" }
+ { "type": "constant", "value": "/authorizations" }
],
"createElement": {
"optionalParameters": [
@@ -77,20 +86,20 @@
"singularName": "event",
"type": "Event",
"getList": true,
- "url": [ { "type": "constant", "value": "https://api.github.com/events" } ]
+ "url": [ { "type": "constant", "value": "/events" } ]
},
{
"name": "issues",
"singularName": "issue",
"type": "Issue",
"getList": true,
- "url": [ { "type": "constant", "value": "https://api.github.com/issues" } ]
+ "url": [ { "type": "constant", "value": "/issues" } ]
},
{
"name": "keys",
"singularName": "key",
"type": "UserKey",
- "url": [ { "type": "constant", "value": "https://api.github.com/user/keys" } ],
+ "url": [ { "type": "constant", "value": "/user/keys" } ],
"getList": true,
"getElement": {
"parameter": { "name": "id", "type": "integer" }
@@ -116,7 +125,7 @@
"getElement": {
"parameter": { "name": "name", "type": "string" },
"url": [
- { "type": "constant", "value": "https://api.github.com/repos/" },
+ { "type": "constant", "value": "/repos/" },
{ "type": "attribute", "value": [ "login" ] },
{ "type": "constant", "value": "/" },
{ "type": "argument", "value": [ "name" ] }
@@ -154,6 +163,24 @@
"removeElement": true
},
{
+ "name": "subscriptions",
+ "singularName": "subscription",
+ "type": "Repository",
+ "getList": true,
+ "hasElement": true,
+ "addElement": true,
+ "removeElement": true
+ },
+ {
+ "name": "starred",
+ "singularName": "starred",
+ "type": "Repository",
+ "getList": true,
+ "hasElement": true,
+ "addElement": true,
+ "removeElement": true
+ },
+ {
"name": "following",
"singularName": "following",
"type": "NamedUser",
@@ -189,7 +216,7 @@
]
},
"url": [
- { "type": "constant", "value": "https://api.github.com/gists" }
+ { "type": "constant", "value": "/gists" }
]
}
],
@@ -204,7 +231,7 @@
"request": {
"verb": "POST",
"url": [
- { "type": "constant", "value": "https://api.github.com/repos/" },
+ { "type": "constant", "value": "/repos/" },
{ "type": "argument", "value": [ "repo", "owner", "login" ] },
{ "type": "constant", "value": "/" },
{ "type": "argument", "value": [ "repo", "name" ] },
@@ -223,7 +250,7 @@
"request": {
"verb": "GET",
"url": [
- { "type": "constant", "value": "https://api.github.com/users/" },
+ { "type": "constant", "value": "/users/" },
{ "type": "attribute", "value": [ "login" ] },
{ "type": "constant", "value": "/events/orgs/" },
{ "type": "argument", "value": [ "org", "login" ] }
@@ -238,7 +265,7 @@
"request": {
"verb": "GET",
"url": [
- { "type": "constant", "value": "https://api.github.com/gists/starred" }
+ { "type": "constant", "value": "/gists/starred" }
],
"information": "status"
}
@@ -292,6 +319,30 @@
]
},
{
+ "name": "CommitStatus",
+ "attributes": [
+ { "name": "created_at", "type": "datetime" },
+ { "name": "updated_at", "type": "datetime" },
+ { "name": "state", "type": "string" },
+ { "name": "target_url", "type": "string" },
+ { "name": "description", "type": "string" },
+ { "name": "id", "type": "integer" },
+ { "name": "creator", "type": "NamedUser" }
+ ]
+ },
+ {
+ "name": "ContentFile",
+ "attributes": [
+ { "name": "type", "type": "string" },
+ { "name": "encoding", "type": "string" },
+ { "name": "size", "type": "integer" },
+ { "name": "name", "type": "string" },
+ { "name": "path", "type": "string" },
+ { "name": "content", "type": "string" },
+ { "name": "sha", "type": "string" }
+ ]
+ },
+ {
"name": "File",
"attributes": [
{ "name": "additions", "type": "integer" },
@@ -333,6 +384,26 @@
{ "name": "position", "type": "integer" }
]
}
+ },
+ {
+ "name": "statuses",
+ "singularName": "status",
+ "type": "CommitStatus",
+ "getList": true,
+ "createElement": {
+ "mandatoryParameters": [
+ { "name": "state", "type": "string" }
+ ],
+ "optionalParameters": [
+ { "name": "target_url", "type": "string" },
+ { "name": "description", "type": "string" }
+ ]
+ },
+ "url": [
+ { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
+ { "type": "constant", "value": "/statuses/" },
+ { "type": "attribute", "value": [ "sha" ] }
+ ]
}
],
"identity": [
@@ -455,7 +526,7 @@
"getElement": {
"parameter": { "name": "id", "type": "integer" },
"url": [
- { "type": "constant", "value": "https://api.github.com/gists/comments/" },
+ { "type": "constant", "value": "/gists/comments/" },
{
"type": "stringOf",
"value": [ { "type": "argument", "value": [ "id" ] } ]
@@ -629,7 +700,7 @@
{
"name": "GitAuthor",
"attributes": [
- { "name": "date", "type": "string" },
+ { "name": "date", "type": "datetime" },
{ "name": "email", "type": "string" },
{ "name": "name", "type": "string" }
]
@@ -930,7 +1001,7 @@
"getElement": {
"parameter": { "name": "name", "type": "string" },
"url": [
- { "type": "constant", "value": "https://api.github.com/repos/" },
+ { "type": "constant", "value": "/repos/" },
{ "type": "attribute", "value": [ "login" ] },
{ "type": "constant", "value": "/" },
{ "type": "argument", "value": [ "name" ] }
@@ -944,6 +1015,18 @@
"getList": true
},
{
+ "name": "subscriptions",
+ "singularName": "subscription",
+ "type": "Repository",
+ "getList": true
+ },
+ {
+ "name": "starred",
+ "singularName": "starred",
+ "type": "Repository",
+ "getList": true
+ },
+ {
"name": "orgs",
"singularName": "org",
"type": "Organization",
@@ -1078,7 +1161,7 @@
"getElement": {
"parameter": { "name": "name", "type": "string" },
"url": [
- { "type": "constant", "value": "https://api.github.com/repos/" },
+ { "type": "constant", "value": "/repos/" },
{ "type": "attribute", "value": [ "login" ] },
{ "type": "constant", "value": "/" },
{ "type": "argument", "value": [ "name" ] }
@@ -1116,7 +1199,7 @@
"getElement": {
"parameter": { "name": "id", "type": "integer" },
"url" : [
- { "type": "constant", "value": "https://api.github.com/teams/" },
+ { "type": "constant", "value": "/teams/" },
{
"type": "stringOf",
"value": [ { "type": "argument", "value": [ "id" ] } ]
@@ -1136,7 +1219,7 @@
"request": {
"verb": "POST",
"url": [
- { "type": "constant", "value": "https://api.github.com/repos/" },
+ { "type": "constant", "value": "/repos/" },
{ "type": "argument", "value": [ "repo", "owner", "login" ] },
{ "type": "constant", "value": "/" },
{ "type": "argument", "value": [ "repo", "name" ] },
@@ -1242,6 +1325,49 @@
}
},
{
+ "name": "issue_comments",
+ "singularName": "issue_comment",
+ "type": "IssueComment",
+ "getList": {
+ "request": {
+ "url": [
+ { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
+ { "type": "constant", "value": "/issues/" },
+ { "type": "stringOf", "value": [ { "type": "attribute", "value": [ "number" ] } ] },
+ { "type": "constant", "value": "/comments" }
+ ]
+ }
+ },
+ "getElement": {
+ "parameter": { "name": "id", "type": "integer" },
+ "request": {
+ "url": [
+ { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
+ { "type": "constant", "value": "/issues/comments/" },
+ {
+ "type": "stringOf",
+ "value": [
+ { "type": "argument", "value": [ "id" ] }
+ ]
+ }
+ ]
+ }
+ },
+ "createElement": {
+ "mandatoryParameters": [
+ { "name": "body", "type": "string" }
+ ],
+ "request": {
+ "url": [
+ { "type": "parentUrl", "value": [ { "type": "parentUrl", "value": [ { "type": "attribute", "value": [ "url" ] } ] } ] },
+ { "type": "constant", "value": "/issues/" },
+ { "type": "stringOf", "value": [ { "type": "attribute", "value": [ "number" ] } ] },
+ { "type": "constant", "value": "/comments" }
+ ]
+ }
+ }
+ },
+ {
"name": "commits",
"singularName": "commit",
"type": "Commit",
@@ -1354,6 +1480,7 @@
{ "name": "has_downloads", "type": "bool" }
]
},
+ "delete": true,
"attributes": [
{ "name": "clone_url", "type": "string" },
{ "name": "created_at", "type": "datetime" },
@@ -1391,7 +1518,10 @@
"name": "branches",
"singularName": "branch",
"type": "Branch",
- "getList": true
+ "getList": true,
+ "getElement": {
+ "parameter": { "name": "branch", "type": "string" }
+ }
},
{
"name": "collaborators",
@@ -1403,6 +1533,13 @@
"removeElement": true
},
{
+ "name": "assignees",
+ "singularName": "assignee",
+ "type": "NamedUser",
+ "getList": true,
+ "hasElement": true
+ },
+ {
"name": "comments",
"singularName": "comment",
"type": "CommitComment",
@@ -1744,6 +1881,18 @@
"singularName": "watcher",
"type": "NamedUser",
"getList": true
+ },
+ {
+ "name": "subscribers",
+ "singularName": "subscriber",
+ "type": "NamedUser",
+ "getList": true
+ },
+ {
+ "name": "stargazers",
+ "singularName": "stargazer",
+ "type": "NamedUser",
+ "getList": true
}
],
"additionalMethods": [
@@ -1754,7 +1903,7 @@
"request": {
"verb": "GET",
"url": [
- { "type": "constant", "value": "https://api.github.com/networks/" },
+ { "type": "constant", "value": "/networks/" },
{ "type": "attribute", "value": [ "owner", "login" ] },
{ "type": "constant", "value": "/" },
{ "type": "attribute", "value": [ "name" ] },
@@ -1775,6 +1924,75 @@
}
},
{
+ "name": [ "get", "readme" ],
+ "type": "ContentFile",
+ "group": "contents",
+ "request": {
+ "verb": "GET",
+ "url": [
+ { "type": "attribute", "value": [ "url" ] },
+ { "type": "constant", "value": "/readme" }
+ ]
+ }
+ },
+ {
+ "name": [ "get", "contents" ],
+ "type": "ContentFile",
+ "group": "contents",
+ "mandatoryParameters": [
+ { "name": "path", "type": "string" }
+ ],
+ "request": {
+ "verb": "GET",
+ "url": [
+ { "type": "attribute", "value": [ "url" ] },
+ { "type": "constant", "value": "/contents" },
+ { "type": "argument", "value": [ "path" ] }
+ ]
+ }
+ },
+ {
+ "name": [ "get", "archive", "link" ],
+ "type": "string",
+ "group": "contents",
+ "mandatoryParameters": [
+ { "name": "archive_format", "type": "string" }
+ ],
+ "optionalParameters": [
+ { "name": "ref", "type": "string" }
+ ],
+ "request": {
+ "verb": "GET",
+ "url": [
+ { "type": "attribute", "value": [ "url" ] },
+ { "type": "constant", "value": "/" },
+ { "type": "argument", "value": [ "archive_format" ] },
+ { "type": "constant", "value": "/" },
+ { "type": "argument", "value": [ "ref" ] }
+ ]
+ }
+ },
+ {
+ "name": [ "merge" ],
+ "type": "Commit",
+ "group": "merging",
+ "mandatoryParameters": [
+ { "name": "base", "type": "string" },
+ { "name": "head", "type": "string" }
+ ],
+ "optionalParameters": [
+ { "name": "commit_message", "type": "string" }
+ ],
+ "request": {
+ "verb": "POST",
+ "url": [
+ { "type": "attribute", "value": [ "url" ] },
+ { "type": "constant", "value": "/merges" }
+ ],
+ "postParameters": true
+ }
+ },
+ {
"name": [ "compare" ],
"type": "Comparison",
"group": "Comparison",
@@ -1792,6 +2010,28 @@
{ "type": "argument", "value": [ "head" ] }
]
}
+ },
+ {
+ "name": [ "legacy", "search", "issues" ],
+ "type": "list:Issue",
+ "group": "issues",
+ "mandatoryParameters": [
+ { "name": "state", "type": "string" },
+ { "name": "keyword", "type": "string" }
+ ],
+ "request": {
+ "verb": "GET",
+ "url": [
+ { "type": "constant", "value": "/legacy/issues/search/" },
+ { "type": "attribute", "value": [ "owner", "login" ] },
+ { "type": "constant", "value": "/" },
+ { "type": "attribute", "value": [ "name" ] },
+ { "type": "constant", "value": "/" },
+ { "type": "argument", "value": [ "state" ] },
+ { "type": "constant", "value": "/" },
+ { "type": "urlquote", "value": [ { "type": "argument", "value": [ "keyword" ] } ] }
+ ]
+ }
}
]
},
View
1,679 codegen/JsonDescriptionOfGithubApiV3/description.normalized.json
@@ -216,7 +216,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user"
+ "value": "/user"
}
],
"postParameters": true,
@@ -299,7 +299,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/authorizations"
+ "value": "/authorizations"
}
],
"information": "status",
@@ -359,7 +359,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/authorizations/"
+ "value": "/authorizations/"
},
{
"type": "stringOf",
@@ -395,7 +395,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/authorizations"
+ "value": "/authorizations"
}
],
"information": "data",
@@ -420,7 +420,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/events"
+ "value": "/events"
}
],
"information": "data",
@@ -445,7 +445,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/issues"
+ "value": "/issues"
}
],
"information": "data",
@@ -487,7 +487,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/keys"
+ "value": "/user/keys"
}
],
"information": "status",
@@ -522,7 +522,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/keys/"
+ "value": "/user/keys/"
},
{
"type": "stringOf",
@@ -558,7 +558,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/keys"
+ "value": "/user/keys"
}
],
"information": "data",
@@ -592,7 +592,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/repos"
+ "value": "/user/repos"
}
],
"information": "status",
@@ -676,7 +676,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/repos/"
+ "value": "/repos/"
},
{
"type": "attribute",
@@ -717,7 +717,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/repos"
+ "value": "/user/repos"
}
],
"information": "data",
@@ -776,7 +776,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/emails"
+ "value": "/user/emails"
}
],
"information": "status",
@@ -802,7 +802,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/emails"
+ "value": "/user/emails"
}
],
"information": "data",
@@ -836,7 +836,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/emails"
+ "value": "/user/emails"
}
],
"information": "status",
@@ -872,7 +872,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/watched/"
+ "value": "/user/watched/"
},
{
"type": "identity",
@@ -903,7 +903,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/watched"
+ "value": "/user/watched"
}
],
"information": "data",
@@ -938,7 +938,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/watched/"
+ "value": "/user/watched/"
},
{
"type": "identity",
@@ -979,7 +979,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/watched/"
+ "value": "/user/watched/"
},
{
"type": "identity",
@@ -1000,32 +1000,32 @@
}
},
{
- "group": "following",
+ "group": "subscriptions",
"name": [
"add",
"to",
- "following"
+ "subscriptions"
],
"mandatoryParameters": [
{
"type": {
"simple": false,
"cardinality": "scalar",
- "name": "NamedUser"
+ "name": "Repository"
},
- "name": "following"
+ "name": "subscription"
}
],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/following/"
+ "value": "/user/subscriptions/"
},
{
"type": "identity",
"value": [
- "following"
+ "subscription"
]
}
],
@@ -1041,17 +1041,17 @@
}
},
{
- "group": "following",
+ "group": "subscriptions",
"name": [
"get",
- "following"
+ "subscriptions"
],
"mandatoryParameters": [],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/following"
+ "value": "/user/subscriptions"
}
],
"information": "data",
@@ -1062,36 +1062,36 @@
"type": {
"simple": false,
"cardinality": "list",
- "name": "NamedUser"
+ "name": "Repository"
}
},
{
- "group": "following",
+ "group": "subscriptions",
"name": [
"has",
"in",
- "following"
+ "subscriptions"
],
"mandatoryParameters": [
{
"type": {
"simple": false,
"cardinality": "scalar",
- "name": "NamedUser"
+ "name": "Repository"
},
- "name": "following"
+ "name": "subscription"
}
],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/following/"
+ "value": "/user/subscriptions/"
},
{
"type": "identity",
"value": [
- "following"
+ "subscription"
]
}
],
@@ -1107,32 +1107,32 @@
}
},
{
- "group": "following",
+ "group": "subscriptions",
"name": [
"remove",
"from",
- "following"
+ "subscriptions"
],
"mandatoryParameters": [
{
"type": {
"simple": false,
"cardinality": "scalar",
- "name": "NamedUser"
+ "name": "Repository"
},
- "name": "following"
+ "name": "subscription"
}
],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/following/"
+ "value": "/user/subscriptions/"
},
{
"type": "identity",
"value": [
- "following"
+ "subscription"
]
}
],
@@ -1148,42 +1148,58 @@
}
},
{
- "group": "followers",
+ "group": "starred",
"name": [
- "get",
- "followers"
+ "add",
+ "to",
+ "starred"
+ ],
+ "mandatoryParameters": [
+ {
+ "type": {
+ "simple": false,
+ "cardinality": "scalar",
+ "name": "Repository"
+ },
+ "name": "starred"
+ }
],
- "mandatoryParameters": [],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/followers"
+ "value": "/user/starred/"
+ },
+ {
+ "type": "identity",
+ "value": [
+ "starred"
+ ]
}
],
- "information": "data",
- "verb": "GET"
+ "information": "status",
+ "verb": "PUT"
},
"isMutation": false,
"optionalParameters": [],
"type": {
- "simple": false,
- "cardinality": "list",
- "name": "NamedUser"
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "void"
}
},
{
- "group": "orgs",
+ "group": "starred",
"name": [
"get",
- "orgs"
+ "starred"
],
"mandatoryParameters": [],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/user/orgs"
+ "value": "/user/starred"
}
],
"information": "data",
@@ -1194,74 +1210,144 @@
"type": {
"simple": false,
"cardinality": "list",
- "name": "Organization"
+ "name": "Repository"
}
},
{
- "group": "gists",
+ "group": "starred",
"name": [
- "create",
- "gist"
+ "has",
+ "in",
+ "starred"
],
"mandatoryParameters": [
{
"type": {
- "simple": true,
+ "simple": false,
"cardinality": "scalar",
- "name": "bool"
+ "name": "Repository"
},
- "name": "public"
- },
+ "name": "starred"
+ }
+ ],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/user/starred/"
+ },
+ {
+ "type": "identity",
+ "value": [
+ "starred"
+ ]
+ }
+ ],
+ "information": "status",
+ "verb": "GET"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "bool"
+ }
+ },
+ {
+ "group": "starred",
+ "name": [
+ "remove",
+ "from",
+ "starred"
+ ],
+ "mandatoryParameters": [
{
"type": {
"simple": false,
- "key_name": "string",
- "cardinality": "dict",
- "name": "InputFileContent"
+ "cardinality": "scalar",
+ "name": "Repository"
},
- "name": "files"
+ "name": "starred"
}
],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/gists"
+ "value": "/user/starred/"
+ },
+ {
+ "type": "identity",
+ "value": [
+ "starred"
+ ]
}
],
"information": "status",
- "verb": "POST",
- "postParameters": true
+ "verb": "DELETE"
},
"isMutation": false,
- "optionalParameters": [
+ "optionalParameters": [],
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "void"
+ }
+ },
+ {
+ "group": "following",
+ "name": [
+ "add",
+ "to",
+ "following"
+ ],
+ "mandatoryParameters": [
{
"type": {
- "simple": true,
+ "simple": false,
"cardinality": "scalar",
- "name": "string"
+ "name": "NamedUser"
},
- "name": "description"
+ "name": "following"
}
],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/user/following/"
+ },
+ {
+ "type": "identity",
+ "value": [
+ "following"
+ ]
+ }
+ ],
+ "information": "status",
+ "verb": "PUT"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
"type": {
- "simple": false,
+ "simple": true,
"cardinality": "scalar",
- "name": "Gist"
+ "name": "void"
}
},
{
- "group": "gists",
+ "group": "following",
"name": [
"get",
- "gists"
+ "following"
],
"mandatoryParameters": [],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/gists"
+ "value": "/user/following"
}
],
"information": "data",
@@ -1272,134 +1358,106 @@
"type": {
"simple": false,
"cardinality": "list",
- "name": "Gist"
+ "name": "NamedUser"
}
},
{
- "group": "forking",
+ "group": "following",
"name": [
- "create",
- "fork"
+ "has",
+ "in",
+ "following"
],
"mandatoryParameters": [
{
"type": {
"simple": false,
"cardinality": "scalar",
- "name": "Repository"
+ "name": "NamedUser"
},
- "name": "repo"
+ "name": "following"
}
],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/repos/"
- },
- {
- "type": "argument",
- "value": [
- "repo",
- "owner",
- "login"
- ]
- },
- {
- "type": "constant",
- "value": "/"
+ "value": "/user/following/"
},
{
- "type": "argument",
+ "type": "identity",
"value": [
- "repo",
- "name"
+ "following"
]
- },
- {
- "type": "constant",
- "value": "/forks"
}
],
"information": "status",
- "verb": "POST"
+ "verb": "GET"
},
"isMutation": false,
"optionalParameters": [],
"type": {
- "simple": false,
+ "simple": true,
"cardinality": "scalar",
- "name": "Repository"
+ "name": "bool"
}
},
{
- "group": "events",
+ "group": "following",
"name": [
- "get",
- "organization",
- "events"
+ "remove",
+ "from",
+ "following"
],
"mandatoryParameters": [
{
"type": {
"simple": false,
"cardinality": "scalar",
- "name": "Organization"
+ "name": "NamedUser"
},
- "name": "org"
+ "name": "following"
}
],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/users/"
- },
- {
- "type": "attribute",
- "value": [
- "login"
- ]
- },
- {
- "type": "constant",
- "value": "/events/orgs/"
+ "value": "/user/following/"
},
{
- "type": "argument",
+ "type": "identity",
"value": [
- "org",
- "login"
+ "following"
]
}
],
"information": "status",
- "verb": "GET"
+ "verb": "DELETE"
},
"isMutation": false,
"optionalParameters": [],
"type": {
- "simple": false,
- "cardinality": "list",
- "name": "Event"
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "void"
}
},
{
- "group": "gists",
+ "group": "followers",
"name": [
"get",
- "starred",
- "gists"
+ "followers"
],
"mandatoryParameters": [],
"request": {
"url": [
{
"type": "constant",
- "value": "https://api.github.com/gists/starred"
+ "value": "/user/followers"
}
],
- "information": "status",
+ "information": "data",
"verb": "GET"
},
"isMutation": false,
@@ -1407,15 +1465,253 @@
"type": {
"simple": false,
"cardinality": "list",
- "name": "Gist"
+ "name": "NamedUser"
}
- }
- ]
- },
- {
- "attributes": [
+ },
{
- "type": {
+ "group": "orgs",
+ "name": [
+ "get",
+ "orgs"
+ ],
+ "mandatoryParameters": [],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/user/orgs"
+ }
+ ],
+ "information": "data",
+ "verb": "GET"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
+ "type": {
+ "simple": false,
+ "cardinality": "list",
+ "name": "Organization"
+ }
+ },
+ {
+ "group": "gists",
+ "name": [
+ "create",
+ "gist"
+ ],
+ "mandatoryParameters": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "bool"
+ },
+ "name": "public"
+ },
+ {
+ "type": {
+ "simple": false,
+ "key_name": "string",
+ "cardinality": "dict",
+ "name": "InputFileContent"
+ },
+ "name": "files"
+ }
+ ],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/gists"
+ }
+ ],
+ "information": "status",
+ "verb": "POST",
+ "postParameters": true
+ },
+ "isMutation": false,
+ "optionalParameters": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "description"
+ }
+ ],
+ "type": {
+ "simple": false,
+ "cardinality": "scalar",
+ "name": "Gist"
+ }
+ },
+ {
+ "group": "gists",
+ "name": [
+ "get",
+ "gists"
+ ],
+ "mandatoryParameters": [],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/gists"
+ }
+ ],
+ "information": "data",
+ "verb": "GET"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
+ "type": {
+ "simple": false,
+ "cardinality": "list",
+ "name": "Gist"
+ }
+ },
+ {
+ "group": "forking",
+ "name": [
+ "create",
+ "fork"
+ ],
+ "mandatoryParameters": [
+ {
+ "type": {
+ "simple": false,
+ "cardinality": "scalar",
+ "name": "Repository"
+ },
+ "name": "repo"
+ }
+ ],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/repos/"
+ },
+ {
+ "type": "argument",
+ "value": [
+ "repo",
+ "owner",
+ "login"
+ ]
+ },
+ {
+ "type": "constant",
+ "value": "/"
+ },
+ {
+ "type": "argument",
+ "value": [
+ "repo",
+ "name"
+ ]
+ },
+ {
+ "type": "constant",
+ "value": "/forks"
+ }
+ ],
+ "information": "status",
+ "verb": "POST"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
+ "type": {
+ "simple": false,
+ "cardinality": "scalar",
+ "name": "Repository"
+ }
+ },
+ {
+ "group": "events",
+ "name": [
+ "get",
+ "organization",
+ "events"
+ ],
+ "mandatoryParameters": [
+ {
+ "type": {
+ "simple": false,
+ "cardinality": "scalar",
+ "name": "Organization"
+ },
+ "name": "org"
+ }
+ ],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/users/"
+ },
+ {
+ "type": "attribute",
+ "value": [
+ "login"
+ ]
+ },
+ {
+ "type": "constant",
+ "value": "/events/orgs/"
+ },
+ {
+ "type": "argument",
+ "value": [
+ "org",
+ "login"
+ ]
+ }
+ ],
+ "information": "status",
+ "verb": "GET"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
+ "type": {
+ "simple": false,
+ "cardinality": "list",
+ "name": "Event"
+ }
+ },
+ {
+ "group": "gists",
+ "name": [
+ "get",
+ "starred",
+ "gists"
+ ],
+ "mandatoryParameters": [],
+ "request": {
+ "url": [
+ {
+ "type": "constant",
+ "value": "/gists/starred"
+ }
+ ],
+ "information": "status",
+ "verb": "GET"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
+ "type": {
+ "simple": false,
+ "cardinality": "list",
+ "name": "Gist"
+ }
+ }
+ ]
+ },
+ {
+ "attributes": [
+ {
+ "type": {
"simple": false,
"cardinality": "scalar",
"name": "AuthorizationApplication"
@@ -1806,24 +2102,145 @@
"cardinality": "list",
"name": "CommitComment"
}
- }
- ]
- },
- {
- "attributes": [
- {
- "type": {
- "simple": true,
- "cardinality": "scalar",
- "name": "string"
- },
- "name": "body"
},
{
- "type": {
- "simple": true,
- "cardinality": "scalar",
- "name": "string"
+ "group": "statuses",
+ "name": [
+ "create",
+ "status"
+ ],
+ "mandatoryParameters": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "state"
+ }
+ ],
+ "request": {
+ "url": [
+ {
+ "type": "parentUrl",
+ "value": [
+ {
+ "type": "parentUrl",
+ "value": [
+ {
+ "type": "attribute",
+ "value": [
+ "url"
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "constant",
+ "value": "/statuses/"
+ },
+ {
+ "type": "attribute",
+ "value": [
+ "sha"
+ ]
+ }
+ ],
+ "information": "status",
+ "verb": "POST",
+ "postParameters": true
+ },
+ "isMutation": false,
+ "optionalParameters": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "target_url"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "description"
+ }
+ ],
+ "type": {
+ "simple": false,
+ "cardinality": "scalar",
+ "name": "CommitStatus"
+ }
+ },
+ {
+ "group": "statuses",
+ "name": [
+ "get",
+ "statuses"
+ ],
+ "mandatoryParameters": [],
+ "request": {
+ "url": [
+ {
+ "type": "parentUrl",
+ "value": [
+ {
+ "type": "parentUrl",
+ "value": [
+ {
+ "type": "attribute",
+ "value": [
+ "url"
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "type": "constant",
+ "value": "/statuses/"
+ },
+ {
+ "type": "attribute",
+ "value": [
+ "sha"
+ ]
+ }
+ ],
+ "information": "data",
+ "verb": "GET"
+ },
+ "isMutation": false,
+ "optionalParameters": [],
+ "type": {
+ "simple": false,
+ "cardinality": "list",
+ "name": "CommitStatus"
+ }
+ }
+ ]
+ },
+ {
+ "attributes": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "body"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
},
"name": "commit_id"
},
@@ -2004,6 +2421,69 @@
"type": {
"simple": true,
"cardinality": "scalar",
+ "name": "datetime"
+ },
+ "name": "created_at"
+ },
+ {
+ "type": {
+ "simple": false,
+ "cardinality": "scalar",
+ "name": "NamedUser"
+ },
+ "name": "creator"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "description"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "integer"
+ },
+ "name": "id"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "state"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "target_url"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "datetime"
+ },
+ "name": "updated_at"
+ }
+ ],
+ "isCompletable": false,
+ "name": "CommitStatus",
+ "methods": []
+ },
+ {
+ "attributes": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
"name": "integer"
},
"name": "ahead_by"
@@ -2109,6 +2589,69 @@
"cardinality": "scalar",
"name": "string"
},
+ "name": "content"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "encoding"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "name"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "path"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "sha"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "integer"
+ },
+ "name": "size"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "type"
+ }
+ ],
+ "isCompletable": false,
+ "name": "ContentFile",
+ "methods": []
+ },
+ {
+ "attributes": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
"name": "accesskeyid"
},
{
@@ -2704,7 +3247,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/gists/comments/"
+ "value": "/gists/comments/"
},
{
"type": "stringOf",
@@ -3104,7 +3647,7 @@
"type": {
"simple": true,
"cardinality": "scalar",
- "name": "string"
+ "name": "datetime"
},
"name": "date"
},
@@ -3748,10 +4291,10 @@
{
"type": {
"simple": true,
- "cardinality": "scalar",
- "name": "integer"
+ "cardinality": "list",
+ "name": "string"
},
- "name": "code"
+ "name": "events"
},
{
"type": {
@@ -3759,15 +4302,54 @@
"cardinality": "scalar",
"name": "string"
},
- "name": "message"
+ "name": "name"
+ },
+ {
+ "type": {
+ "simple": false,
+ "cardinality": "list",
+ "name": "list:string"
+ },
+ "name": "schema"
},
{
"type": {
"simple": true,
- "cardinality": "scalar",
+ "cardinality": "list",
"name": "string"
},
- "name": "status"
+ "name": "supported_events"
+ }
+ ],
+ "isCompletable": false,
+ "name": "HookDescription",
+ "methods": []
+ },
+ {
+ "attributes": [
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "integer"
+ },
+ "name": "code"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "message"
+ },
+ {
+ "type": {
+ "simple": true,
+ "cardinality": "scalar",
+ "name": "string"
+ },
+ "name": "status"
}
],
"isCompletable": false,
@@ -5243,7 +5825,7 @@
"url": [
{
"type": "constant",
- "value": "https://api.github.com/repos/"
+ "value": "/repos/"
},
{
"type": "attribute",
@@ -5345,6 +5927,68 @@
}
},
{
+ "group": "subscriptions",
+ "name": [
+ "get",
+ "subscriptions