├── .project
├── .settings
└── org.eclipse.core.resources.prefs
├── api.raml
├── connectors
├── GitHubUploadTransformer.java
├── about.md
└── connector.xml
├── docs
├── api
│ └── headline.md
├── headline.md
└── uploadsApi
│ └── headline.md
├── examples
├── addRepo-example.json
├── asset-example.json
├── assetPatch-example.json
├── assets-example.json
├── assetsPost-example.json
├── assignees-example.json
├── blob-example.json
├── blobs-example.json
├── branch-example.json
├── branches-example.json
├── codeFrequencyStats-example.json
├── collaborators-example.json
├── comment-example.json
├── commentBody-example.json
├── commentBody-schema-example.json
├── comments-example.json
├── commit-example.json
├── commitActivityStats-example.json
├── commitBody-example.json
├── commitComments-example.json
├── commits-example.json
├── compare-commits-example.json
├── contents-path-example.json
├── contributors-example.json
├── contributorsStats-example.json
├── createDownload-example.json
├── createFile-example.json
├── createFileBody-example.json
├── deleteFile-example.json
├── deleteFileBody-example.json
├── deployment-example.json
├── deployment-resp-example.json
├── deployment-statuses-create-example.json
├── deployment-statuses-example.json
├── downloadBody-example.json
├── downloads-example.json
├── editTeam-example.json
├── emailsPost-example.json
├── emojis-example.json
├── event-example.json
├── events-example.json
├── feeds-example.json
├── fork-example.json
├── forkBody-example.json
├── forks-example.json
├── gist-example.json
├── gists-example.json
├── gitCommit-example.json
├── gitRefPatch-example.json
├── gitignore-example.json
├── gitignore-lang-example.json
├── headBranch-example.json
├── headBranchBody-example.json
├── heads-example.json
├── hook-example.json
├── hookBody-example.json
├── issue-example.json
├── issue-schema-example.json
├── issueBody-example.json
├── issues-example.json
├── issuesComment-example.json
├── issuesComments-example.json
├── key-example.json
├── keyBody-example.json
├── keys-example.json
├── label-example.json
├── labels-example.json
├── labelsBody-example.json
├── labelsBody-schema-example.json
├── languages-example.json
├── markdown-example.html
├── markdown-example.json
├── member-example.json
├── members-example.json
├── mergeFailed-example.json
├── mergePullBody-example.json
├── mergesBody-example.json
├── mergesConflict-example.json
├── mergesMissing-example.json
├── mergesSuccessful-example.json
├── meta-example.json
├── milestone-example.json
├── milestoneBody-example.json
├── milestoneUpdate-example.json
├── notificationMarkRead-example.json
├── notificationMarkRead-schema-example.json
├── notifications-example.json
├── orgMembers-example.json
├── orgPublicMembers-example.json
├── orgTeams-example.json
├── orgTeamsPost-example.json
├── organization-example.json
├── organizationAsTeamMember-example.json
├── participationStats-example.json
├── patchGist-example.json
├── patchOrg-example.json
├── patchOrgResponse-example.json
├── postComment-example.json
├── postGist-example.json
├── postRepo-example.json
├── pullRequest-example.json
├── pullUpdate-example.json
├── pulls-example.json
├── pullsComment-example.json
├── pullsCommentPost-example.json
├── pullsComments-example.json
├── pullsPost-example.json
├── punchCardStats-example.json
├── putSubscription-example.json
├── rate_limit-example.json
├── raw-example.html
├── raw-example.plain
├── readme-example.json
├── ref-example.json
├── refBody-example.json
├── refStatus-example.json
├── refs-example.json
├── refsBody-example.json
├── release-create-example.json
├── release-example.json
├── releases-example.json
├── repo-deployments-example.json
├── repo-example.json
├── repoComments-example.json
├── repoCommit-example.json
├── repoCommitBody-example.json
├── repoCommits-example.json
├── repoEdit-example.json
├── repos-example.json
├── repositories-example.json
├── search-code-example.json
├── search-issues-by-keyword-example.json
├── search-issues-example.json
├── search-repositories-by-keyword-example.json
├── search-repositories-example.json
├── search-user-by-email-example.json
├── search-users-by-keyword-example.json
├── search-users-example.json
├── stargazers-example.json
├── subscribition-example.json
├── subscribitionBody-example.json
├── subscription-example.json
├── tag-example.json
├── teamMembership-example.json
├── teamRepos-example.json
├── teams-example.json
├── teams-list-example.json
├── teams-teamsId-example.json
├── tree-example.json
├── trees-example.json
├── user-emails-example.json
├── user-emails_final-example.json
├── user-example.json
├── user-keys-example.json
├── user-keys-keyId-example.json
├── user-keys-post-example.json
├── user-update-example.json
├── user-userId-example.json
├── user-userId-starred-example.json
├── user-userId-subscribitions-example.json
├── users-example.json
├── users-userId-keys-example.json
└── users-userId-orgs-example.json
├── notebooks
├── api
│ ├── gists.md
│ ├── gitignoreMarkdownNetworksLegacyEmojis.md
│ ├── reposPartFive.md
│ ├── reposPartFour.md
│ ├── reposPartOne.md
│ ├── reposPartSix.md
│ ├── reposPartThree.md
│ ├── reposPartTwo.md
│ ├── searchEventsFeedsMetaNotifications.md
│ ├── user.md
│ └── usersOrgsAndTeams.md
└── uploadsApi
│ └── reposPartSix.md
├── portal
├── api
│ ├── api.md
│ └── notebook.md
└── uploadsApi
│ ├── apiUpload.md
│ └── notebookUpload.md
├── resourceTypes
├── base.raml
├── collection.raml
└── item.raml
├── schemas
├── addRepo-schema.json
├── asset-schema.json
├── assetPatch-schema.json
├── assets-schema.json
├── assetsPost-schema.json
├── assignees-schema.json
├── blob-schema.json
├── blobs-schema.json
├── branch-schema.json
├── branches-schema.json
├── codeFrequencyStats-schema.json
├── collaborators-schema.json
├── comment-schema.json
├── commentBody-schema.json
├── comments-schema.json
├── commit-schema.json
├── commitActivityStats-schema.json
├── commitBody-schema.json
├── commitComments-schema.json
├── commits-schema.json
├── compare-commits-schema.json
├── contents-path-schema.json
├── contributors-schema.json
├── contributorsStats-schema.json
├── createDownload-schema.json
├── createFile-schema.json
├── createFileBody-schema.json
├── deleteFile-schema.json
├── deleteFileBody-schema.json
├── deployment-resp-schema.json
├── deployment-schema.json
├── deployment-statuses-create-schema.json
├── deployment-statuses-schema.json
├── downloadBody-schema.json
├── downloadId-schema.json
├── downloads-schema.json
├── editTeam-schema.json
├── emailsPost-schema.json
├── emojis-schema.json
├── event-schema.json
├── events-schema.json
├── feeds-schema.json
├── fork-schema.json
├── forkBody-schema.json
├── forks-schema.json
├── gist-schema.json
├── gists-schema.json
├── gitCommit-schema.json
├── gitRefPatch-schema.json
├── gitignore-lang-schema.json
├── gitignore-schema.json
├── headBranch-schema.json
├── headBranchBody-schema.json
├── heads-schema.json
├── hook-schema.json
├── hookBody-schema.json
├── issue-schema.json
├── issueBody-schema.json
├── issues-schema.json
├── issuesComment-schema.json
├── issuesComments-schema.json
├── key-schema.json
├── keyBody-schema.json
├── keys-schema.json
├── label-schema.json
├── labels-schema.json
├── labelsBody-schema.json
├── languages-schema.json
├── markdown-schema.json
├── member-schema.json
├── members-schema.json
├── merge-schema.json
├── mergePullBody-schema.json
├── mergesBody-schema.json
├── mergesConflict-schema.json
├── mergesSuccessful-schema.json
├── meta-schema.json
├── milestone-schema.json
├── milestoneBody-schema.json
├── milestoneUpdate-schema.json
├── milestones-schema.json
├── notificationMarkRead-schema.json
├── notifications-schema.json
├── orgMembers-schema.json
├── orgPublicMembers-schema.json
├── orgTeams-schema.json
├── orgTeamsPost-schema.json
├── organization-schema.json
├── organizationAsTeamMember-schema.json
├── participationStats-schema.json
├── patchGist-schema.json
├── patchOrg-schema.json
├── patchOrgResponse-schema.json
├── postComment-schema.json
├── postGist-schema.json
├── postRepo-schema.json
├── pullRequest-schema.json
├── pullUpdate-schema.json
├── pulls-schema.json
├── pullsComment-schema.json
├── pullsCommentBody-schema.json
├── pullsCommentPost-schema.json
├── pullsComments-schema.json
├── pullsPost-schema.json
├── punchCardStats-schema.json
├── putSubscription-schema.json
├── rate_limit-schema.json
├── readme-schema.json
├── ref-schema.json
├── refBody-schema.json
├── refStatus-schema.json
├── refs-schema.json
├── refsBody-schema.json
├── release-create-schema.json
├── release-schema.json
├── releases-schema.json
├── repo-deployments-schema.json
├── repo-schema.json
├── repoComments-schema.json
├── repoCommit-schema.json
├── repoCommitBody-schema.json
├── repoEdit-schema.json
├── repos-schema.json
├── repositories-schema.json
├── schema-issues-by-keyword-schema.json
├── search-code-schema.json
├── search-issues-by-keyword-schema.json
├── search-issues-schema.json
├── search-repositories-by-keyword-schema.json
├── search-repositories-schema.json
├── search-user-by-email-schema.json
├── search-users-by-keyword-schema.json
├── search-users-schema.json
├── stargazers-schema.json
├── subscribition-schema.json
├── subscribitionBody-schema.json
├── subscription-schema.json
├── tag-schema.json
├── tags-schema.json
├── team-schema.json
├── teamMembership-schema.json
├── teamRepos-schema.json
├── teams-list-schema.json
├── teams-schema.json
├── tree-schema.json
├── trees-schema.json
├── user-emails-schema.json
├── user-emails_final-schema.json
├── user-keys-keyId-schema.json
├── user-keys-post-schema.json
├── user-keys-schema.json
├── user-schema.json
├── user-update-schema.json
├── user-userId-schema.json
├── user-userId-starred-schema.json
├── user-userId-subscribitions-schema.json
├── users-schema.json
├── users-userId-keys-schema.json
└── users-userId-orgs-schema.json
├── securitySchemes
└── oauth_2_0.raml
├── traits
├── filterable.raml
├── filterableSince.raml
├── historical.raml
├── notifications.raml
├── ordering.raml
├── ordering2.raml
└── state.raml
└── uploadsApi.raml
/.project:
--------------------------------------------------------------------------------
1 |
2 |
Hello world 2 | github/linguist#1 3 | cool, and #1! 4 |
-------------------------------------------------------------------------------- /examples/markdown-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "text" : "Hello world github/linguist#1 **cool**, and #1!" , 3 | "mode" : "gfm" , 4 | "context" : "github/gollum" 5 | } -------------------------------------------------------------------------------- /examples/member-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "message" : "Cannot add an organization as a member." , 3 | "errors" : [ 4 | { 5 | "code" : "org" , 6 | "field" : "user" , 7 | "resource" : "TeamMember" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /examples/members-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "octocat", 4 | "id": 1, 5 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 6 | "gravatar_id": "somehexcode", 7 | "url": "https://api.github.com/users/octocat" 8 | } 9 | ] -------------------------------------------------------------------------------- /examples/mergeFailed-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "sha": null, 3 | "merged": false, 4 | "message": "Failure reason" 5 | } -------------------------------------------------------------------------------- /examples/mergePullBody-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "commit_message" : "Test API Notebook pull request merge" 3 | } -------------------------------------------------------------------------------- /examples/mergesBody-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "base" : "master" , 3 | "head" : "cool_feature" , 4 | "commit_message" : "Shipped cool_feature!" 5 | } -------------------------------------------------------------------------------- /examples/mergesConflict-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Merge Conflict" 3 | } -------------------------------------------------------------------------------- /examples/mergesMissing-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Base does not exist" 3 | } -------------------------------------------------------------------------------- /examples/mergesSuccessful-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", 3 | "merged": true, 4 | "message": "Pull Request successfully merged" 5 | } -------------------------------------------------------------------------------- /examples/meta-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "hooks": [ 3 | "127.0.0.1/32" 4 | ], 5 | "git": [ 6 | "127.0.0.1/32" 7 | ] 8 | } -------------------------------------------------------------------------------- /examples/milestone-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", 3 | "number": 1, 4 | "state": "open", 5 | "title": "v1.0", 6 | "description": "", 7 | "creator": { 8 | "login": "octocat", 9 | "id": 1, 10 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 11 | "gravatar_id": "somehexcode", 12 | "url": "https://api.github.com/users/octocat" 13 | }, 14 | "open_issues": 4, 15 | "closed_issues": 8, 16 | "created_at": "2011-04-10T20:09:31Z", 17 | "due_on": null 18 | } -------------------------------------------------------------------------------- /examples/milestoneBody-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "title" : "String" , 3 | "state" : "open or closed" , 4 | "description" : "String" , 5 | "due_on" : "2012-10-09T23:39:01Z" 6 | } -------------------------------------------------------------------------------- /examples/milestoneUpdate-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "title" : "String" , 3 | "state" : "open or closed" , 4 | "description" : "String" , 5 | "due_on" : "Time" 6 | } -------------------------------------------------------------------------------- /examples/notificationMarkRead-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "last_read_at" : "2012-09-25T07:54:41-07:00" 3 | } -------------------------------------------------------------------------------- /examples/notificationMarkRead-schema-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "last_read_at" : "2012-09-25T07:54:41-07:00" 3 | } -------------------------------------------------------------------------------- /examples/notifications-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "repository": { 5 | "id": 1296269, 6 | "owner": { 7 | "login": "octocat", 8 | "id": 1, 9 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 10 | "gravatar_id": "somehexcode", 11 | "url": "https://api.github.com/users/octocat" 12 | }, 13 | "name": "Hello-World", 14 | "full_name": "octocat/Hello-World", 15 | "description": "This your first repo!", 16 | "private": false, 17 | "fork": false, 18 | "url": "https://api.github.com/repos/octocat/Hello-World", 19 | "html_url": "https://github.com/octocat/Hello-World" 20 | }, 21 | "subject": { 22 | "title": "Greetings", 23 | "url": "https://api.github.com/repos/pengwynn/octokit/issues/123", 24 | "latest_comment_url": "https://api.github.com/repos/pengwynn/octokit/issues/comments/123", 25 | "type": "Issue" 26 | }, 27 | "reason": "subscribed", 28 | "unread": true, 29 | "updated_at": "2012-09-25T07:54:41-07:00", 30 | "last_read_at": "2012-09-25T07:54:41-07:00", 31 | "url": "https://api.github.com/notifications/threads/1" 32 | } 33 | ] -------------------------------------------------------------------------------- /examples/orgMembers-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "octocat", 4 | "id": 1, 5 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 6 | "gravatar_id": "somehexcode", 7 | "url": "https://api.github.com/users/octocat" 8 | } 9 | ] -------------------------------------------------------------------------------- /examples/orgPublicMembers-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "octocat", 4 | "id": 1, 5 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 6 | "gravatar_id": "somehexcode", 7 | "url": "https://api.github.com/users/octocat" 8 | } 9 | ] -------------------------------------------------------------------------------- /examples/orgTeams-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "url": "https://api.github.com/teams/1", 4 | "name": "Owners", 5 | "id": 1 6 | } 7 | ] -------------------------------------------------------------------------------- /examples/orgTeamsPost-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "name", 3 | "repo_names": [], 4 | "permission": "pull" 5 | } 6 | -------------------------------------------------------------------------------- /examples/organization-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "login": "github", 3 | "id": 1, 4 | "url": "https://api.github.com/orgs/github", 5 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 6 | "name": "github", 7 | "company": "GitHub", 8 | "blog": "https://github.com/blog", 9 | "location": "San Francisco", 10 | "email": "octocat@github.com", 11 | "public_repos": 2, 12 | "public_gists": 1, 13 | "followers": 20, 14 | "following": 0, 15 | "html_url": "https://github.com/octocat", 16 | "created_at": "2008-01-14T04:33:35Z", 17 | "type": "Organization" 18 | } -------------------------------------------------------------------------------- /examples/organizationAsTeamMember-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "message" : "Cannot add an organization as a member." , 3 | "errors" : [ 4 | { 5 | "code" : "org" , 6 | "field" : "user" , 7 | "resource" : "TeamMember" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /examples/participationStats-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "all": [ 3 | 11, 4 | 21, 5 | 15, 6 | 2, 7 | 8, 8 | 1, 9 | 8, 10 | 23, 11 | 17, 12 | 21, 13 | 11, 14 | 10, 15 | 33, 16 | 91, 17 | 38, 18 | 34, 19 | 22, 20 | 23, 21 | 32, 22 | 3, 23 | 43, 24 | 87, 25 | 71, 26 | 18, 27 | 13, 28 | 5, 29 | 13, 30 | 16, 31 | 66, 32 | 27, 33 | 12, 34 | 45, 35 | 110, 36 | 117, 37 | 13, 38 | 8, 39 | 18, 40 | 9, 41 | 19, 42 | 26, 43 | 39, 44 | 12, 45 | 20, 46 | 31, 47 | 46, 48 | 91, 49 | 45, 50 | 10, 51 | 24, 52 | 9, 53 | 29, 54 | 7 55 | ], 56 | "owner": [ 57 | 3, 58 | 2, 59 | 3, 60 | 0, 61 | 2, 62 | 0, 63 | 5, 64 | 14, 65 | 7, 66 | 9, 67 | 1, 68 | 5, 69 | 0, 70 | 48, 71 | 19, 72 | 2, 73 | 0, 74 | 1, 75 | 10, 76 | 2, 77 | 23, 78 | 40, 79 | 35, 80 | 8, 81 | 8, 82 | 2, 83 | 10, 84 | 6, 85 | 30, 86 | 0, 87 | 2, 88 | 9, 89 | 53, 90 | 104, 91 | 3, 92 | 3, 93 | 10, 94 | 4, 95 | 7, 96 | 11, 97 | 21, 98 | 4, 99 | 4, 100 | 22, 101 | 26, 102 | 63, 103 | 11, 104 | 2, 105 | 14, 106 | 1, 107 | 10, 108 | 3 109 | ] 110 | } -------------------------------------------------------------------------------- /examples/patchGist-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "the description for this gist", 3 | "files": { 4 | "file1.txt": { 5 | "content": "updated file contents" 6 | }, 7 | "old_name.txt": { 8 | "filename": "new_name.txt", 9 | "content": "modified contents" 10 | }, 11 | "new_file.txt": { 12 | "content": "a new file" 13 | }, 14 | "delete_this_file.txt": null 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /examples/patchOrg-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "billing_email": "billing@email.billingemail", 3 | "company": "company", 4 | "email": "e@mai.l", 5 | "location": "Somewhere", 6 | "name": "name" 7 | } 8 | -------------------------------------------------------------------------------- /examples/patchOrgResponse-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "login": "github", 3 | "id": 1, 4 | "url": "https://api.github.com/orgs/github", 5 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 6 | "name": "github", 7 | "company": "GitHub", 8 | "blog": "https://github.com/blog", 9 | "location": "San Francisco", 10 | "email": "octocat@github.com", 11 | "public_repos": 2, 12 | "public_gists": 1, 13 | "followers": 20, 14 | "following": 0, 15 | "html_url": "https://github.com/octocat", 16 | "created_at": "2008-01-14T04:33:35Z", 17 | "type": "Organization", 18 | "total_private_repos": 100, 19 | "owned_private_repos": 100, 20 | "private_gists": 81, 21 | "disk_usage": 10000, 22 | "collaborators": 8, 23 | "billing_email": "support@github.com", 24 | "plan": { 25 | "name": "Medium", 26 | "space": 400, 27 | "private_repos": 20 28 | } 29 | } -------------------------------------------------------------------------------- /examples/postComment-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "body": "" 3 | } 4 | -------------------------------------------------------------------------------- /examples/postGist-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "description" : "blablabla" , 3 | "public" : true , 4 | "files" : { 5 | "file1.txt" : { 6 | "content" : "String file contents" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /examples/postRepo-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "name" 3 | } 4 | -------------------------------------------------------------------------------- /examples/pullUpdate-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "title" : "new title" , 3 | "body" : "updated body" , 4 | "state" : "open" 5 | } -------------------------------------------------------------------------------- /examples/pullsComment-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", 3 | "id": 1, 4 | "body": "Great stuff", 5 | "path": "file1.txt", 6 | "position": 4, 7 | "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", 8 | "user": { 9 | "login": "octocat", 10 | "id": 1, 11 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 12 | "gravatar_id": "somehexcode", 13 | "url": "https://api.github.com/users/octocat" 14 | }, 15 | "created_at": "2011-04-14T16:00:49Z", 16 | "updated_at": "2011-04-14T16:00:49Z", 17 | "_links": { 18 | "self": { 19 | "href": "https://api.github.com/octocat/Hello-World/pulls/comments/1" 20 | }, 21 | "html": { 22 | "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" 23 | }, 24 | "pull_request": { 25 | "href": "https://api.github.com/octocat/Hello-World/pulls/1" 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /examples/pullsCommentPost-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "body" : "Nice change" , 3 | "commit_id" : "6dcb09b5b57875f334f61aebed695e2e4193db5e" , 4 | "path" : "file1.txt" , 5 | "position" : 4 6 | } -------------------------------------------------------------------------------- /examples/pullsComments-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", 4 | "id": 1, 5 | "body": "Great stuff", 6 | "path": "file1.txt", 7 | "position": 4, 8 | "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", 9 | "user": { 10 | "login": "octocat", 11 | "id": 1, 12 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 13 | "gravatar_id": "somehexcode", 14 | "url": "https://api.github.com/users/octocat" 15 | }, 16 | "created_at": "2011-04-14T16:00:49Z", 17 | "updated_at": "2011-04-14T16:00:49Z", 18 | "_links": { 19 | "self": { 20 | "href": "https://api.github.com/octocat/Hello-World/pulls/comments/1" 21 | }, 22 | "html": { 23 | "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" 24 | }, 25 | "pull_request": { 26 | "href": "https://api.github.com/octocat/Hello-World/pulls/1" 27 | } 28 | } 29 | } 30 | ] -------------------------------------------------------------------------------- /examples/pullsPost-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "title" : "Amazing new feature" , 3 | "body" : "Please pull this in!" , 4 | "head" : "octocat:new-feature" , 5 | "base" : "master" 6 | } -------------------------------------------------------------------------------- /examples/punchCardStats-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | [ 3 | 0, 4 | 0, 5 | 5 6 | ], 7 | [ 8 | 0, 9 | 1, 10 | 43 11 | ], 12 | [ 13 | 0, 14 | 2, 15 | 21 16 | ] 17 | ] -------------------------------------------------------------------------------- /examples/putSubscription-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "subscribed" : true , 3 | "ignored" : false , 4 | "reason" : null , 5 | "created_at" : "2012-10-06T21:34:12Z" , 6 | "url" : "https://api.github.com/notifications/threads/1/subscription" , 7 | "thread_url" : "https://api.github.com/notifications/threads/1" 8 | } -------------------------------------------------------------------------------- /examples/rate_limit-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "rate": { 3 | "limit": 5000, 4 | "remaining": 4999, 5 | "reset": 1372700873 6 | } 7 | } -------------------------------------------------------------------------------- /examples/raw-example.html: -------------------------------------------------------------------------------- 1 |Hello world github/linguist#1 cool, and #1!
-------------------------------------------------------------------------------- /examples/raw-example.plain: -------------------------------------------------------------------------------- 1 | The rendering mode. Can be either: 2 | * markdown to render a document as plain Markdown, just like README files are rendered. 3 | * gfm to render a document as user-content, e.g. like user comments or issues are rendered. In GFM mode, hard line breaks are always taken into account, and issue and user mentions are linked accordingly. 4 | Default: markdown -------------------------------------------------------------------------------- /examples/readme-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "file", 3 | "encoding": "base64", 4 | "size": 5362, 5 | "name": "README.md", 6 | "path": "README.md", 7 | "content": "encoded content ...", 8 | "sha": "3d21ec53a331a6f037a91c368710b99387d012c1", 9 | "url": "https://api.github.com/repos/pengwynn/octokit/contents/README.md", 10 | "git_url": "https://api.github.com/repos/pengwynn/octokit/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1", 11 | "html_url": "https://github.com/pengwynn/octokit/blob/master/README.md", 12 | "_links": { 13 | "git": "https://api.github.com/repos/pengwynn/octokit/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1", 14 | "self": "https://api.github.com/repos/pengwynn/octokit/contents/README.md", 15 | "html": "https://github.com/pengwynn/octokit/blob/master/README.md" 16 | } 17 | } -------------------------------------------------------------------------------- /examples/ref-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "created_at": "2012-07-20T01:19:13Z", 4 | "updated_at": "2012-07-20T01:19:13Z", 5 | "state": "success", 6 | "target_url": "https://ci.example.com/1000/output", 7 | "description": "Build has completed successfully", 8 | "id": 1, 9 | "url": "https://api.github.com/repos/octocat/example/statuses/1", 10 | "creator": { 11 | "login": "octocat", 12 | "id": 1, 13 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 14 | "gravatar_id": "somehexcode", 15 | "url": "https://api.github.com/users/octocat" 16 | } 17 | } 18 | ] -------------------------------------------------------------------------------- /examples/refBody-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "ref" : "refs/heads/featureA" , 3 | "url" : "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA" , 4 | "object" : { 5 | "type" : "commit" , 6 | "sha" : "aa218f56b14c9653891f9e74264a383fa43fefbd" , 7 | "url" : "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd" 8 | } 9 | } -------------------------------------------------------------------------------- /examples/refStatus-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "state" : "success" , 4 | "name" : "octocat/Hello-World" , 5 | "sha" : "6dcb09b5b57875f334f61aebed695e2e4193db5e" , 6 | "statuses" : [ 7 | { 8 | "created_at" : "2012-07-20T01:19:13Z" , 9 | "updated_at" : "2012-07-20T01:19:13Z" , 10 | "state" : "success" , 11 | "target_url" : "https://ci.example.com/1000/output" , 12 | "description" : "Build has completed successfully" , 13 | "id" : 1 , 14 | "url" : "https://api.github.com/repos/octocat/example/statuses/1" , 15 | "context" : "continuous-integration/jenkins" 16 | } , { 17 | "created_at" : "2012-07-20T01:19:13Z" , 18 | "updated_at" : "2012-07-20T01:19:13Z" , 19 | "state" : "success" , 20 | "target_url" : "https://ci.example.com/1000/output" , 21 | "description" : "Build has completed successfully" , 22 | "id" : 1 , 23 | "url" : "https://api.github.com/repos/octocat/example/statuses/1" , 24 | "context" : "security/brakeman" 25 | } 26 | ] , 27 | "commit_url" : "https://api.github.com/repos/octocat/Hello-World/6dcb09b5b57875f334f61aebed695e2e4193db5e" , 28 | "repository_url" : "https://api.github.com/repos/octocat/Hello-World" 29 | } 30 | ] -------------------------------------------------------------------------------- /examples/refs-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ref": "refs/heads/master", 4 | "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/master", 5 | "object": { 6 | "type": "commit", 7 | "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd", 8 | "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd" 9 | } 10 | }, 11 | { 12 | "ref": "refs/heads/gh-pages", 13 | "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/gh-pages", 14 | "object": { 15 | "type": "commit", 16 | "sha": "612077ae6dffb4d2fbd8ce0cccaa58893b07b5ac", 17 | "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/612077ae6dffb4d2fbd8ce0cccaa58893b07b5ac" 18 | } 19 | }, 20 | { 21 | "ref": "refs/tags/v0.0.1", 22 | "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/tags/v0.0.1", 23 | "object": { 24 | "type": "tag", 25 | "sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac", 26 | "url": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac" 27 | } 28 | } 29 | ] -------------------------------------------------------------------------------- /examples/refsBody-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "ref" : "refs/heads/featureA" , 3 | "sha" : "aa218f56b14c9653891f9e74264a383fa43fefbd" 4 | } -------------------------------------------------------------------------------- /examples/release-create-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "tag_name": "v1.0.0", 3 | "target_commitish": "master", 4 | "name": "v1.0.0", 5 | "body": "Description of the release", 6 | "draft": false, 7 | "prerelease": false 8 | } -------------------------------------------------------------------------------- /examples/repo-deployments-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "sha": "topic-branch", 5 | "url": "https://api.github.com/repos/octocat/example/deployments/1", 6 | "creator": { 7 | "login": "octocat", 8 | "id": 1, 9 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 10 | "gravatar_id": "somehexcode", 11 | "url": "https://api.github.com/users/octocat", 12 | "html_url": "https://github.com/octocat", 13 | "followers_url": "https://api.github.com/users/octocat/followers", 14 | "following_url": "https://api.github.com/users/octocat/following{/other_user}", 15 | "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", 16 | "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", 17 | "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", 18 | "organizations_url": "https://api.github.com/users/octocat/orgs", 19 | "repos_url": "https://api.github.com/users/octocat/repos", 20 | "events_url": "https://api.github.com/users/octocat/events{/privacy}", 21 | "received_events_url": "https://api.github.com/users/octocat/received_events", 22 | "type": "User", 23 | "site_admin": false 24 | }, 25 | "payload": "{\"environment\":\"production\"}", 26 | "created_at": "2012-07-20T01:19:13Z", 27 | "updated_at": "2012-07-20T01:19:13Z", 28 | "description": "Deploy request from hubot", 29 | "statuses_url": "https://api.github.com/repos/octocat/example/deployments/1/statuses" 30 | } 31 | ] -------------------------------------------------------------------------------- /examples/repoComments-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1", 4 | "url": "https://api.github.com/repos/octocat/Hello-World/comments/1", 5 | "id": 1, 6 | "body": "Great stuff", 7 | "path": "file1.txt", 8 | "position": 4, 9 | "line": 14, 10 | "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", 11 | "user": { 12 | "login": "octocat", 13 | "id": 1, 14 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 15 | "gravatar_id": "somehexcode", 16 | "url": "https://api.github.com/users/octocat" 17 | }, 18 | "created_at": "2011-04-14T16:00:49Z", 19 | "updated_at": "2011-04-14T16:00:49Z" 20 | } 21 | ] -------------------------------------------------------------------------------- /examples/repoCommit-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "sha": "7638417db6d59f3c431d3e1f261cc637155684cd", 3 | "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", 4 | "author": { 5 | "date": "2010-04-10T14:10:01-07:00", 6 | "name": "Scott Chacon", 7 | "email": "schacon@gmail.com" 8 | }, 9 | "committer": { 10 | "date": "2010-04-10T14:10:01-07:00", 11 | "name": "Scott Chacon", 12 | "email": "schacon@gmail.com" 13 | }, 14 | "message": "added readme, because im a good github citizen\n", 15 | "tree": { 16 | "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb", 17 | "sha": "691272480426f78a0138979dd3ce63b77f706feb" 18 | }, 19 | "parents": [ 20 | { 21 | "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5", 22 | "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5" 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /examples/repoCommitBody-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "message" : "my commit message" , 3 | "author" : { 4 | "name" : "Scott Chacon" , 5 | "email" : "schacon@gmail.com" , 6 | "date" : "2008-07-09T16:13:30+12:00" 7 | } , 8 | "parents" : [ 9 | "7d1b31e74ee336d15cbd21741bc88a537ed063a0" 10 | ] , 11 | "tree" : "827efc6d56897b048c772eb4087f854f46256132" 12 | } -------------------------------------------------------------------------------- /examples/repoCommits-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "sha": "7638417db6d59f3c431d3e1f261cc637155684cd", 3 | "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", 4 | "author": { 5 | "date": "2008-07-09T16:13:30+12:00", 6 | "name": "Scott Chacon", 7 | "email": "schacon@gmail.com" 8 | }, 9 | "committer": { 10 | "date": "2008-07-09T16:13:30+12:00", 11 | "name": "Scott Chacon", 12 | "email": "schacon@gmail.com" 13 | }, 14 | "message": "my commit message", 15 | "tree": { 16 | "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/827efc6d56897b048c772eb4087f854f46256132", 17 | "sha": "827efc6d56897b048c772eb4087f854f46256132" 18 | }, 19 | "parents": [ 20 | { 21 | "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7d1b31e74ee336d15cbd21741bc88a537ed063a0", 22 | "sha": "7d1b31e74ee336d15cbd21741bc88a537ed063a0" 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /examples/repoEdit-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "Hello-World" , 3 | "description" : "This is your first repository" , 4 | "homepage" : "https://github.com" , 5 | "private" : true , 6 | "has_issues" : true , 7 | "has_wiki" : true , 8 | "has_downloads" : true 9 | } -------------------------------------------------------------------------------- /examples/repos-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1296269, 4 | "owner": { 5 | "login": "octocat", 6 | "id": 1, 7 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 8 | "gravatar_id": "somehexcode", 9 | "url": "https://api.github.com/users/octocat" 10 | }, 11 | "name": "Hello-World", 12 | "full_name": "octocat/Hello-World", 13 | "description": "This your first repo!", 14 | "private": false, 15 | "fork": true, 16 | "url": "https://api.github.com/repos/octocat/Hello-World", 17 | "html_url": "https://github.com/octocat/Hello-World", 18 | "clone_url": "https://github.com/octocat/Hello-World.git", 19 | "git_url": "git://github.com/octocat/Hello-World.git", 20 | "ssh_url": "git@github.com:octocat/Hello-World.git", 21 | "svn_url": "https://svn.github.com/octocat/Hello-World", 22 | "mirror_url": "git://git.example.com/octocat/Hello-World", 23 | "homepage": "https://github.com", 24 | "language": null, 25 | "forks": 9, 26 | "forks_count": 9, 27 | "watchers": 80, 28 | "watchers_count": 80, 29 | "size": 108, 30 | "master_branch": "master", 31 | "open_issues": 0, 32 | "open_issues_count": 0, 33 | "pushed_at": "2011-01-26T19:06:43Z", 34 | "created_at": "2011-01-26T19:01:12Z", 35 | "updated_at": "2011-01-26T19:14:43Z" 36 | } 37 | ] -------------------------------------------------------------------------------- /examples/repositories-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1296269, 4 | "owner": { 5 | "login": "octocat", 6 | "id": 1, 7 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 8 | "gravatar_id": "somehexcode", 9 | "url": "https://api.github.com/users/octocat" 10 | }, 11 | "name": "Hello-World", 12 | "full_name": "octocat/Hello-World", 13 | "description": "This your first repo!", 14 | "private": false, 15 | "fork": false, 16 | "url": "https://api.github.com/repos/octocat/Hello-World", 17 | "html_url": "https://github.com/octocat/Hello-World" 18 | } 19 | ] -------------------------------------------------------------------------------- /examples/search-issues-by-keyword-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "issues": [ 3 | { 4 | "gravatar_id": "4c3d600867886124a73f14a907b1a955", 5 | "position": 10, 6 | "number": 10, 7 | "votes": 2, 8 | "created_at": "2010-06-04T23:20:33Z", 9 | "comments": 5, 10 | "body": "Issue body goes here", 11 | "title": "This is is the issue title", 12 | "updated_at": "2010-06-04T23:20:33Z", 13 | "html_url": "https://github.com/pengwynn/linkedin/issues/10", 14 | "user": "ckarbass", 15 | "labels": [ 16 | "api", 17 | "feature request", 18 | "investigation" 19 | ], 20 | "state": "open" 21 | } 22 | ] 23 | } -------------------------------------------------------------------------------- /examples/search-repositories-by-keyword-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "repositories": [ 3 | { 4 | "type": "repo", 5 | "created": "2011-09-05T11:07:54Z", 6 | "watchers": 2913, 7 | "has_downloads": true, 8 | "username": "mathiasbynens", 9 | "homepage": "http://mths.be/dotfiles", 10 | "url": "https://github.com/mathiasbynens/dotfiles", 11 | "fork": false, 12 | "has_issues": true, 13 | "has_wiki": false, 14 | "forks": 520, 15 | "size": 192, 16 | "private": false, 17 | "followers": 2913, 18 | "name": "dotfiles", 19 | "owner": "mathiasbynens", 20 | "open_issues": 12, 21 | "pushed_at": "2012-06-05T03:37:13Z", 22 | "score": 3.289718, 23 | "pushed": "2012-06-05T03:37:13Z", 24 | "description": "sensible hacker defaults for OS X", 25 | "language": "VimL", 26 | "created_at": "2011-09-05T11:07:54Z" 27 | } 28 | ] 29 | } -------------------------------------------------------------------------------- /examples/search-repositories-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "total_count": 40, 3 | "items": [ 4 | { 5 | "id": 3081286, 6 | "name": "Tetris", 7 | "full_name": "dtrupenn/Tetris", 8 | "owner": { 9 | "login": "dtrupenn", 10 | "id": 872147, 11 | "avatar_url": "https://secure.gravatar.com/avatar/e7956084e75f239de85d3a31bc172ace?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", 12 | "gravatar_id": "e7956084e75f239de85d3a31bc172ace", 13 | "url": "https://api.github.com/users/dtrupenn", 14 | "received_events_url": "https://api.github.com/users/dtrupenn/received_events", 15 | "type": "User" 16 | }, 17 | "private": false, 18 | "html_url": "https://github.com/dtrupenn/Tetris", 19 | "description": "A C implementation of Tetris using Pennsim through LC4", 20 | "fork": false, 21 | "url": "https://api.github.com/repos/dtrupenn/Tetris", 22 | "created_at": "2012-01-01T00:31:50Z", 23 | "updated_at": "2013-01-05T17:58:47Z", 24 | "pushed_at": "2012-01-01T00:37:02Z", 25 | "homepage": "", 26 | "size": 524, 27 | "watchers_count": 1, 28 | "language": "Assembly", 29 | "forks_count": 0, 30 | "open_issues_count": 0, 31 | "forks": 0, 32 | "open_issues": 0, 33 | "watchers": 1, 34 | "master_branch": "master", 35 | "default_branch": "master", 36 | "score": 10.309712 37 | } 38 | ] 39 | } -------------------------------------------------------------------------------- /examples/search-user-by-email-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "user": { 3 | "public_repo_count": 2, 4 | "public_gist_count": 1, 5 | "followers_count": 20, 6 | "following_count": 0, 7 | "created": "2009-10-05T01:32:06Z", 8 | "created_at": "2009-10-05T01:32:06Z", 9 | "name": "monalisa octocat", 10 | "company": "GitHub", 11 | "blog": "https://github.com/blog", 12 | "location": "San Francisco", 13 | "email": "octocat@github.com", 14 | "id": 2, 15 | "login": "octocat", 16 | "type": "User", 17 | "gravatar_id": "70889091349f7598bce9afa588034310" 18 | } 19 | } -------------------------------------------------------------------------------- /examples/search-users-by-keyword-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "users": [ 3 | { 4 | "gravatar_id": "70889091349f7598bce9afa588034310", 5 | "name": "Hirotaka Kawata", 6 | "created_at": "2009-10-05T01:32:06Z", 7 | "location": "Tsukuba, Ibaraki, Japan", 8 | "public_repo_count": 8, 9 | "followers": 10, 10 | "language": "Python", 11 | "fullname": "Hirotaka Kawata", 12 | "username": "techno", 13 | "id": "user-135050", 14 | "repos": 8, 15 | "type": "user", 16 | "followers_count": 10, 17 | "login": "techno", 18 | "score": 4.2559967, 19 | "created": "2009-10-05T01:32:06Z" 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /examples/search-users-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "total_count": 12, 3 | "items": [ 4 | { 5 | "login": "mojombo", 6 | "id": 1, 7 | "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", 8 | "gravatar_id": "25c7c18223fb42a4c6ae1c8db6f50f9b", 9 | "url": "https://api.github.com/users/mojombo", 10 | "html_url": "https://github.com/mojombo", 11 | "followers_url": "https://api.github.com/users/mojombo/followers", 12 | "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions", 13 | "organizations_url": "https://api.github.com/users/mojombo/orgs", 14 | "repos_url": "https://api.github.com/users/mojombo/repos", 15 | "received_events_url": "https://api.github.com/users/mojombo/received_events", 16 | "type": "User", 17 | "score": 105.47857 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /examples/stargazers-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "octocat", 4 | "id": 1, 5 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 6 | "gravatar_id": "somehexcode", 7 | "url": "https://api.github.com/users/octocat" 8 | } 9 | ] -------------------------------------------------------------------------------- /examples/subscribition-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "subscribed": true, 3 | "ignored": false, 4 | "reason": null, 5 | "created_at": "2012-10-06T21:34:12Z", 6 | "url": "https://api.github.com/repos/octocat/example/subscription", 7 | "repository_url": "https://api.github.com/repos/octocat/example" 8 | } -------------------------------------------------------------------------------- /examples/subscribitionBody-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "subscribed" : true , 3 | "ignored" : false 4 | } -------------------------------------------------------------------------------- /examples/subscription-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "subscribed": true, 3 | "ignored": false, 4 | "reason": null, 5 | "created_at": "2012-10-06T21:34:12Z", 6 | "url": "https://api.github.com/notifications/threads/1/subscription", 7 | "thread_url": "https://api.github.com/notifications/threads/1" 8 | } -------------------------------------------------------------------------------- /examples/tag-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "tag": "v0.0.1", 3 | "sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac", 4 | "url": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac", 5 | "message": "initial version\n", 6 | "tagger": { 7 | "name": "Scott Chacon", 8 | "email": "schacon@gmail.com", 9 | "date": "2011-06-17T14:53:35-07:00" 10 | }, 11 | "object": { 12 | "type": "commit", 13 | "sha": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c", 14 | "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c" 15 | } 16 | } -------------------------------------------------------------------------------- /examples/teamMembership-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "url" : "https://api.github.com/teams/1/memberships/octocat" , 3 | "state" : "active" 4 | } -------------------------------------------------------------------------------- /examples/teamRepos-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1296269, 4 | "owner": { 5 | "login": "octocat", 6 | "id": 1, 7 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 8 | "gravatar_id": "somehexcode", 9 | "url": "https://api.github.com/users/octocat" 10 | }, 11 | "name": "Hello-World", 12 | "full_name": "octocat/Hello-World", 13 | "description": "This your first repo!", 14 | "private": false, 15 | "fork": false, 16 | "url": "https://api.github.com/repos/octocat/Hello-World", 17 | "html_url": "https://github.com/octocat/Hello-World", 18 | "clone_url": "https://github.com/octocat/Hello-World.git", 19 | "git_url": "git://github.com/octocat/Hello-World.git", 20 | "ssh_url": "git@github.com:octocat/Hello-World.git", 21 | "svn_url": "https://svn.github.com/octocat/Hello-World", 22 | "mirror_url": "git://git.example.com/octocat/Hello-World", 23 | "homepage": "https://github.com", 24 | "language": null, 25 | "forks": 9, 26 | "forks_count": 9, 27 | "watchers": 80, 28 | "watchers_count": 80, 29 | "size": 108, 30 | "master_branch": "master", 31 | "open_issues": 0, 32 | "open_issues_count": 0, 33 | "pushed_at": "2011-01-26T19:06:43Z", 34 | "created_at": "2011-01-26T19:01:12Z", 35 | "updated_at": "2011-01-26T19:14:43Z" 36 | } 37 | ] -------------------------------------------------------------------------------- /examples/teams-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "url": "https://api.github.com/teams/1", 4 | "name": "Owners", 5 | "id": 1 6 | } 7 | ] -------------------------------------------------------------------------------- /examples/teams-list-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "url": "https://api.github.com/teams/1", 4 | "name": "Owners", 5 | "id": 1, 6 | "permission": "admin", 7 | "members_count": 3, 8 | "repos_count": 10, 9 | "organization": { 10 | "login": "github", 11 | "id": 1, 12 | "url": "https://api.github.com/orgs/github", 13 | "avatar_url": "https://github.com/images/error/octocat_happy.gif" 14 | } 15 | } 16 | ] -------------------------------------------------------------------------------- /examples/teams-teamsId-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api.github.com/teams/1", 3 | "name": "Owners", 4 | "id": 1, 5 | "permission": "admin", 6 | "members_count": 3, 7 | "repos_count": 10 8 | } -------------------------------------------------------------------------------- /examples/tree-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "sha": "9fb037999f264ba9a7fc6274d15fa3ae2ab98312", 3 | "url": "https://api.github.com/repos/octocat/Hello-World/trees/9fb037999f264ba9a7fc6274d15fa3ae2ab98312", 4 | "tree": [ 5 | { 6 | "path": "file.rb", 7 | "mode": "100644", 8 | "type": "blob", 9 | "size": 30, 10 | "sha": "44b4fc6d56897b048c772eb4087f854f46256132", 11 | "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132" 12 | }, 13 | { 14 | "path": "subdir", 15 | "mode": "040000", 16 | "type": "tree", 17 | "sha": "f484d249c660418515fb01c2b9662073663c242e", 18 | "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/f484d249c660418515fb01c2b9662073663c242e" 19 | }, 20 | { 21 | "path": "exec_file", 22 | "mode": "100755", 23 | "type": "blob", 24 | "size": 75, 25 | "sha": "45b983be36b73c0788dc9cbcb76cbb80fc7bb057", 26 | "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/45b983be36b73c0788dc9cbcb76cbb80fc7bb057" 27 | } 28 | ] 29 | } -------------------------------------------------------------------------------- /examples/trees-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "sha": "cd8274d15fa3ae2ab983129fb037999f264ba9a7", 3 | "url": "https://api.github.com/repo/octocat/Hello-World/trees/cd8274d15fa3ae2ab983129fb037999f264ba9a7", 4 | "tree": [ 5 | { 6 | "path": "file.rb", 7 | "mode": "100644", 8 | "type": "blob", 9 | "size": 132, 10 | "sha": "7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b", 11 | "url": "https://api.github.com/octocat/Hello-World/git/blobs/7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b" 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /examples/user-emails-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | "octocat@github.com", 3 | "support@github.com" 4 | ] -------------------------------------------------------------------------------- /examples/user-emails_final-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "email": "octocat@github.com", 4 | "verified": true, 5 | "primary": true 6 | } 7 | ] -------------------------------------------------------------------------------- /examples/user-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "login": "octocat", 3 | "id": 1, 4 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 5 | "gravatar_id": "somehexcode", 6 | "url": "https://api.github.com/users/octocat", 7 | "name": "monalisa octocat", 8 | "company": "GitHub", 9 | "blog": "https://github.com/blog", 10 | "location": "San Francisco", 11 | "email": "octocat@github.com", 12 | "hireable": false, 13 | "bio": "There once was...", 14 | "public_repos": 2, 15 | "public_gists": 1, 16 | "followers": 20, 17 | "following": 0, 18 | "html_url": "https://github.com/octocat", 19 | "created_at": "2008-01-14T04:33:35Z", 20 | "type": "User", 21 | "total_private_repos": 100, 22 | "owned_private_repos": 100, 23 | "private_gists": 81, 24 | "disk_usage": 10000, 25 | "collaborators": 8, 26 | "plan": { 27 | "name": "Medium", 28 | "space": 400, 29 | "collaborators": 10, 30 | "private_repos": 20 31 | } 32 | } -------------------------------------------------------------------------------- /examples/user-keys-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "key": "ssh-rsa AAA...", 5 | "url": "https://api.github.com/user/keys/1", 6 | "title": "octocat@octomac" 7 | } 8 | ] -------------------------------------------------------------------------------- /examples/user-keys-keyId-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": 1, 3 | "key": "ssh-rsa AAA...", 4 | "url": "https://api.github.com/user/keys/1", 5 | "title": "octocat@octomac" 6 | } -------------------------------------------------------------------------------- /examples/user-keys-post-example.json: -------------------------------------------------------------------------------- 1 | { "title": "title", "key": "key" } 2 | -------------------------------------------------------------------------------- /examples/user-update-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "name", 3 | "email": "e@m.ail", 4 | "blog": "blog name", 5 | "company": "company name", 6 | "location": "location", 7 | "hireable": false, 8 | "bio": "bio" 9 | } 10 | -------------------------------------------------------------------------------- /examples/user-userId-example.json: -------------------------------------------------------------------------------- 1 | { 2 | "login": "octocat", 3 | "id": 1, 4 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 5 | "gravatar_id": "somehexcode", 6 | "url": "https://api.github.com/users/octocat", 7 | "name": "monalisa octocat", 8 | "company": "GitHub", 9 | "blog": "https://github.com/blog", 10 | "location": "San Francisco", 11 | "email": "octocat@github.com", 12 | "hireable": false, 13 | "bio": "There once was...", 14 | "public_repos": 2, 15 | "public_gists": 1, 16 | "followers": 20, 17 | "following": 0, 18 | "html_url": "https://github.com/octocat", 19 | "created_at": "2008-01-14T04:33:35Z", 20 | "type": "User" 21 | } -------------------------------------------------------------------------------- /examples/user-userId-starred-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1296269, 4 | "owner": { 5 | "login": "octocat", 6 | "id": 1, 7 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 8 | "gravatar_id": "somehexcode", 9 | "url": "https://api.github.com/users/octocat" 10 | }, 11 | "name": "Hello-World", 12 | "full_name": "octocat/Hello-World", 13 | "description": "This your first repo!", 14 | "private": false, 15 | "fork": false, 16 | "url": "https://api.github.com/repos/octocat/Hello-World", 17 | "html_url": "https://github.com/octocat/Hello-World", 18 | "clone_url": "https://github.com/octocat/Hello-World.git", 19 | "git_url": "git://github.com/octocat/Hello-World.git", 20 | "ssh_url": "git@github.com:octocat/Hello-World.git", 21 | "svn_url": "https://svn.github.com/octocat/Hello-World", 22 | "mirror_url": "git://git.example.com/octocat/Hello-World", 23 | "homepage": "https://github.com", 24 | "language": null, 25 | "forks": 9, 26 | "forks_count": 9, 27 | "watchers": 80, 28 | "watchers_count": 80, 29 | "size": 108, 30 | "master_branch": "master", 31 | "open_issues": 0, 32 | "open_issues_count": 0, 33 | "pushed_at": "2011-01-26T19:06:43Z", 34 | "created_at": "2011-01-26T19:01:12Z", 35 | "updated_at": "2011-01-26T19:14:43Z" 36 | } 37 | ] -------------------------------------------------------------------------------- /examples/user-userId-subscribitions-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1296269, 4 | "owner": { 5 | "login": "octocat", 6 | "id": 1, 7 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 8 | "gravatar_id": "somehexcode", 9 | "url": "https://api.github.com/users/octocat" 10 | }, 11 | "name": "Hello-World", 12 | "full_name": "octocat/Hello-World", 13 | "description": "This your first repo!", 14 | "private": false, 15 | "fork": false, 16 | "url": "https://api.github.com/repos/octocat/Hello-World", 17 | "html_url": "https://github.com/octocat/Hello-World", 18 | "clone_url": "https://github.com/octocat/Hello-World.git", 19 | "git_url": "git://github.com/octocat/Hello-World.git", 20 | "ssh_url": "git@github.com:octocat/Hello-World.git", 21 | "svn_url": "https://svn.github.com/octocat/Hello-World", 22 | "mirror_url": "git://git.example.com/octocat/Hello-World", 23 | "homepage": "https://github.com", 24 | "language": null, 25 | "forks": 9, 26 | "forks_count": 9, 27 | "watchers": 80, 28 | "watchers_count": 80, 29 | "size": 108, 30 | "master_branch": "master", 31 | "open_issues": 0, 32 | "open_issues_count": 0, 33 | "pushed_at": "2011-01-26T19:06:43Z", 34 | "created_at": "2011-01-26T19:01:12Z", 35 | "updated_at": "2011-01-26T19:14:43Z" 36 | } 37 | ] -------------------------------------------------------------------------------- /examples/users-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "octocat", 4 | "id": 1, 5 | "avatar_url": "https://github.com/images/error/octocat_happy.gif", 6 | "gravatar_id": "somehexcode", 7 | "url": "https://api.github.com/users/octocat" 8 | } 9 | ] -------------------------------------------------------------------------------- /examples/users-userId-keys-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 1, 4 | "key": "ssh-rsa AAA..." 5 | } 6 | ] -------------------------------------------------------------------------------- /examples/users-userId-orgs-example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "login": "github", 4 | "id": 1, 5 | "url": "https://api.github.com/orgs/github", 6 | "avatar_url": "https://github.com/images/error/octocat_happy.gif" 7 | } 8 | ] -------------------------------------------------------------------------------- /portal/api/notebook.md: -------------------------------------------------------------------------------- 1 | The API notebooks are all executable! Hit "enter" in any code cell to execute it (and all cells before it that have not executed yet), or scroll to the bottom of the notebook and click "Play notebook". For more information, see [http://apinotebook.com](http://apinotebook.com). 2 | 3 | #Considerations 4 | 5 | - In order to run these notebooks you will need a GitHub account. At some point of the execution, you will be prompted to authorize the client application to access to your account. 6 | - You should register a GitHub application at [https://github.com/settings/applications/new](https://github.com/settings/applications/new). Authorization callback URL of your application must be set to [https://api-notebook.anypoint.mulesoft.com/authenticate/oauth.html](https://api-notebook.anypoint.mulesoft.com/authenticate/oauth.html). At some point of the run, you will be prompted to enter the clientId and clientSecret of your own application. 7 | - In order to run "Users, orgs and teams" and "Repos part 2" notebooks you should register an organization at [https://github.com/account/organizations/new](https://github.com/account/organizations/new). In the very beginning of each notebook you will be prompted to enter the organization ID. 8 | - The "Users, orgs and teams" notebook asks you to provide some GitHub user ID. During notebook execution this User will be added to your organization and team and removed from them later on. Do not enter your own ID as you can not be removed from your own organization. Remember, that you must have access to the users email. 9 | -------------------------------------------------------------------------------- /portal/uploadsApi/notebookUpload.md: -------------------------------------------------------------------------------- 1 | The API notebooks are all executable! Hit "enter" in any code cell to execute it (and all cells before it that have not executed yet), or scroll to the bottom of the notebook and click "Play notebook". For more information, see [http://apinotebook.com](http://apinotebook.com). 2 | 3 | #Considerations 4 | 5 | - Please, refer to the [GitHub Notebooks collection](https://anypoint.mulesoft.com/apiplatform/popular/#/portals/apis/7782/versions/7918). 6 | -------------------------------------------------------------------------------- /resourceTypes/collection.raml: -------------------------------------------------------------------------------- 1 | post?: 2 | get?: 3 | type: base 4 | -------------------------------------------------------------------------------- /resourceTypes/item.raml: -------------------------------------------------------------------------------- 1 | delete?: 2 | responses: 3 | 204: 4 | description: Item removed. 5 | post?: 6 | put?: 7 | get?: 8 | patch?: 9 | type: base 10 | -------------------------------------------------------------------------------- /schemas/addRepo-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "properties": { 5 | "message": { 6 | "type": "string" 7 | }, 8 | "errors": { 9 | "type": "array", 10 | "items": { 11 | "type": "object", 12 | "properties": { 13 | "code": { 14 | "type": "string" 15 | }, 16 | "field": { 17 | "type": "string" 18 | }, 19 | "resource": { 20 | "type": "string" 21 | } 22 | } 23 | } 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /schemas/assetPatch-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "name" : { 7 | "type" : "string" , 8 | "required" : true 9 | } , 10 | "label" : { 11 | "type" : "string" , 12 | "required" : false 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /schemas/assignees-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "integer" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /schemas/blob-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "content": { 6 | "type": "string" 7 | }, 8 | "encoding": { 9 | "enum": [ 10 | "utf-8", 11 | "base64" 12 | ] 13 | }, 14 | "sha": { 15 | "type": "string" 16 | }, 17 | "size": { 18 | "type": "integer" 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /schemas/blobs-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "sha": { 6 | "type": "string" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /schemas/branches-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "name": { 8 | "type": "string" 9 | }, 10 | "commit": { 11 | "properties": { 12 | "sha": { 13 | "type": "string" 14 | }, 15 | "url": { 16 | "type": "string" 17 | } 18 | }, 19 | "type": "object" 20 | } 21 | }, 22 | "type": "object" 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /schemas/codeFrequencyStats-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "type": "integer" 7 | } 8 | ] 9 | } -------------------------------------------------------------------------------- /schemas/collaborators-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /schemas/comment-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "body" : { 7 | "type" : "string" , 8 | "required" : false 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /schemas/commentBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "body": { 6 | "type": "string", 7 | "required": true 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /schemas/comments-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "comments": [ 5 | { 6 | "properties": { 7 | "id": { 8 | "type": "integer" 9 | }, 10 | "url": { 11 | "type": "string" 12 | }, 13 | "body": { 14 | "type": "string" 15 | }, 16 | "user": { 17 | "properties": { 18 | "login": { 19 | "type": "string" 20 | }, 21 | "id": { 22 | "type": "integer" 23 | }, 24 | "avatar_url": { 25 | "type": "string" 26 | }, 27 | "gravatar_id": { 28 | "type": "string" 29 | }, 30 | "url": { 31 | "type": "string" 32 | } 33 | }, 34 | "type": "object" 35 | }, 36 | "created_at": { 37 | "description": "ISO 8601.", 38 | "type": "string" 39 | } 40 | }, 41 | "type": "object" 42 | } 43 | ] 44 | } -------------------------------------------------------------------------------- /schemas/commitActivityStats-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "days": [ 8 | { 9 | "type": "integer" 10 | } 11 | ], 12 | "type": "array", 13 | "total": { 14 | "type": "integer" 15 | }, 16 | "week": { 17 | "type": "integer" 18 | } 19 | }, 20 | "type": "object" 21 | } 22 | ] 23 | } -------------------------------------------------------------------------------- /schemas/commitBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "sha": { 6 | "description": "SHA of the commit to comment on.", 7 | "type": "string", 8 | "required": true 9 | }, 10 | "body": { 11 | "type": "string", 12 | "required": true 13 | }, 14 | "path": { 15 | "description": "Relative path of the file to comment on.", 16 | "type": "string" 17 | }, 18 | "position": { 19 | "description": "Line index in the diff to comment on.", 20 | "type": "integer" 21 | }, 22 | "line": { 23 | "description": "Deprecated - Use position parameter instead.", 24 | "type": "string" 25 | }, 26 | "number": { 27 | "description": "Line number in the file to comment on. Defaults to null.", 28 | "type": "string" 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /schemas/commitComments-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "html_url": { 6 | "type": "string" 7 | }, 8 | "url": { 9 | "type": "string" 10 | }, 11 | "id": { 12 | "type": "integer" 13 | }, 14 | "body": { 15 | "type": "string" 16 | }, 17 | "path": { 18 | "type": "string" 19 | }, 20 | "position": { 21 | "type": "integer" 22 | }, 23 | "line": { 24 | "type": "integer" 25 | }, 26 | "commit_id": { 27 | "type": "string" 28 | }, 29 | "user": { 30 | "properties": { 31 | "login": { 32 | "type": "string" 33 | }, 34 | "id": { 35 | "type": "integer" 36 | }, 37 | "avatar_url": { 38 | "type": "string" 39 | }, 40 | "gravatar_id": { 41 | "type": "string" 42 | }, 43 | "url": { 44 | "type": "string" 45 | } 46 | }, 47 | "type": "object" 48 | }, 49 | "created_at": { 50 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 51 | "type": "string" 52 | }, 53 | "updated_at": { 54 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 55 | "type": "string" 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /schemas/contents-path-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "type": { 6 | "type": "string" 7 | }, 8 | "encoding": { 9 | "type": "string" 10 | }, 11 | "size": { 12 | "type": "integer" 13 | }, 14 | "name": { 15 | "type": "string" 16 | }, 17 | "path": { 18 | "type": "string" 19 | }, 20 | "content": { 21 | "type": "string" 22 | }, 23 | "sha": { 24 | "type": "string" 25 | }, 26 | "url": { 27 | "type": "string" 28 | }, 29 | "git_url": { 30 | "type": "string" 31 | }, 32 | "html_url": { 33 | "type": "string" 34 | }, 35 | "_links": { 36 | "properties": { 37 | "git": { 38 | "type": "string" 39 | }, 40 | "self": { 41 | "type": "string" 42 | }, 43 | "html": { 44 | "type": "string" 45 | } 46 | }, 47 | "type": "object" 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /schemas/contributors-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | }, 22 | "contributions": { 23 | "type": "integer" 24 | } 25 | }, 26 | "type": "object" 27 | } 28 | ] 29 | } -------------------------------------------------------------------------------- /schemas/contributorsStats-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "author": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "total": { 24 | "description": "The Total number of commits authored by the contributor.", 25 | "type": "integer" 26 | }, 27 | "weeks": [ 28 | { 29 | "properties": { 30 | "w": { 31 | "description": "Start of the week.", 32 | "type": "string" 33 | }, 34 | "a": { 35 | "description": "Number of additions.", 36 | "type": "integer" 37 | }, 38 | "d": { 39 | "description": "Number of deletions.", 40 | "type": "integer" 41 | }, 42 | "c": { 43 | "description": "Number of commits.", 44 | "type": "integer" 45 | } 46 | }, 47 | "type": "object" 48 | } 49 | ], 50 | "type": "array" 51 | } 52 | ] 53 | } -------------------------------------------------------------------------------- /schemas/createDownload-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "url": { 6 | "type": "string" 7 | }, 8 | "html_url": { 9 | "type": "string" 10 | }, 11 | "id": { 12 | "type": "integer" 13 | }, 14 | "name": { 15 | "type": "string" 16 | }, 17 | "description": { 18 | "type": "string" 19 | }, 20 | "size": { 21 | "type": "integer" 22 | }, 23 | "download_count": { 24 | "type": "integer" 25 | }, 26 | "content_type": { 27 | "type": "string" 28 | }, 29 | "policy": { 30 | "type": "string" 31 | }, 32 | "signature": { 33 | "type": "string" 34 | }, 35 | "bucket": { 36 | "type": "string" 37 | }, 38 | "accesskeyid": { 39 | "type": "string" 40 | }, 41 | "path": { 42 | "type": "string" 43 | }, 44 | "acl": { 45 | "type": "string" 46 | }, 47 | "expirationdate": { 48 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 49 | "type": "string" 50 | }, 51 | "prefix": { 52 | "type": "string" 53 | }, 54 | "mime_type": { 55 | "type": "string" 56 | }, 57 | "redirect": { 58 | "type": "boolean" 59 | }, 60 | "s3_url": { 61 | "type": "string" 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /schemas/createFileBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "message" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "committer" : { 11 | "type" : "object" , 12 | "required" : false , 13 | "properties" : { 14 | "name" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "email" : { 19 | "type" : "string" , 20 | "required" : false 21 | } 22 | } 23 | } , 24 | "content" : { 25 | "type" : "string" , 26 | "required" : false 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /schemas/deleteFile-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-03/schema" , 3 | "type" : "object" , 4 | "properties" : { 5 | "content" : { 6 | "type" : "string" 7 | } , 8 | "commit" : { 9 | "properties" : { 10 | "sha" : { 11 | "type" : "string" 12 | } , 13 | "url" : { 14 | "type" : "string" 15 | } , 16 | "html_url" : { 17 | "type" : "string" 18 | } , 19 | "author" : { 20 | "properties" : { 21 | "date" : { 22 | "type" : "string" 23 | } , 24 | "name" : { 25 | "type" : "string" 26 | } , 27 | "email" : { 28 | "type" : "string" 29 | } 30 | } , 31 | "type" : "object" 32 | } , 33 | "committer" : { 34 | "date" : { 35 | "type" : "string" 36 | } , 37 | "name" : { 38 | "type" : "string" 39 | } , 40 | "email" : { 41 | "type" : "string" 42 | } 43 | } , 44 | "message" : { 45 | "type" : "string" 46 | } , 47 | "tree" : { 48 | "properties" : { 49 | "url" : { 50 | "type" : "string" 51 | } , 52 | "sha" : { 53 | "type" : "string" 54 | } 55 | } , 56 | "type" : "object" 57 | } , 58 | "parents" : { 59 | "properties" : { 60 | "url" : { 61 | "type" : "string" 62 | } , 63 | "html_url" : { 64 | "type" : "string" 65 | } , 66 | "sha" : { 67 | "type" : "string" 68 | } 69 | } , 70 | "type" : "object" 71 | } 72 | } , 73 | "type" : "object" 74 | } 75 | } 76 | } -------------------------------------------------------------------------------- /schemas/deleteFileBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "message" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "committer" : { 11 | "type" : "object" , 12 | "required" : false , 13 | "properties" : { 14 | "name" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "email" : { 19 | "type" : "string" , 20 | "required" : false 21 | } 22 | } 23 | } , 24 | "sha" : { 25 | "type" : "string" , 26 | "required" : false 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /schemas/deployment-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "ref" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "payload" : { 11 | "type" : "object" , 12 | "required" : false , 13 | "properties" : { 14 | "environment" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "deploy_user" : { 19 | "type" : "string" , 20 | "required" : false 21 | } , 22 | "room_id" : { 23 | "type" : "number" , 24 | "required" : false 25 | } 26 | } 27 | } , 28 | "description" : { 29 | "type" : "string" , 30 | "required" : false 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /schemas/deployment-statuses-create-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "required": false, 4 | "type": "object", 5 | "properties": { 6 | "state": { 7 | "required": false, 8 | "type": "string" 9 | }, 10 | "target_url": { 11 | "required": false, 12 | "type": "string" 13 | }, 14 | "description": { 15 | "required": false, 16 | "type": "string" 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /schemas/downloadBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "name": { 6 | "type": "string" 7 | }, 8 | "size": { 9 | "description": "Size of file in bytes.", 10 | "type": "integer" 11 | }, 12 | "description": { 13 | "type": "string" 14 | }, 15 | "content_type": { 16 | "type": "string" 17 | } 18 | }, 19 | "required": [ "name", "size" ] 20 | } -------------------------------------------------------------------------------- /schemas/downloadId-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "url": { 6 | "type": "string" 7 | }, 8 | "html_url": { 9 | "type": "string" 10 | }, 11 | "id": { 12 | "type": "integer" 13 | }, 14 | "name": { 15 | "type": "string" 16 | }, 17 | "description": { 18 | "type": "string" 19 | }, 20 | "size": { 21 | "type": "integer" 22 | }, 23 | "download_count": { 24 | "type": "integer" 25 | }, 26 | "content_type": { 27 | "type": "string" 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /schemas/downloads-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "url": { 6 | "type": "string" 7 | }, 8 | "html_url": { 9 | "type": "string" 10 | }, 11 | "id": { 12 | "type": "integer" 13 | }, 14 | "name": { 15 | "type": "string" 16 | }, 17 | "description": { 18 | "type": "string" 19 | }, 20 | "size": { 21 | "type": "integer" 22 | }, 23 | "download_count": { 24 | "type": "integer" 25 | }, 26 | "content_type": { 27 | "type": "string" 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /schemas/editTeam-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "name": { 6 | "type": "string", 7 | "required": true 8 | }, 9 | "permission": { 10 | "values": [ 11 | "pull", 12 | "push", 13 | "admin" 14 | ] 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /schemas/emailsPost-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "array" , 5 | "items" : [ 6 | { 7 | "type" : "string" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /schemas/emojis-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "required": false, 4 | "type": "object", 5 | "properties": { 6 | "+1": { 7 | "required": false, 8 | "type": "string" 9 | }, 10 | "-1": { 11 | "required": false, 12 | "type": "string" 13 | }, 14 | "100": { 15 | "required": false, 16 | "type": "string" 17 | }, 18 | "1234": { 19 | "required": false, 20 | "type": "string" 21 | }, 22 | "8ball": { 23 | "required": false, 24 | "type": "string" 25 | }, 26 | "a": { 27 | "required": false, 28 | "type": "string" 29 | }, 30 | "ab": { 31 | "required": false, 32 | "type": "string" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /schemas/feeds-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "timeline_url": { 6 | "type": "string" 7 | }, 8 | "user_url": { 9 | "type": "string" 10 | }, 11 | "current_user_public": { 12 | "type": "string" 13 | }, 14 | "current_user_url": { 15 | "type": "string" 16 | }, 17 | "current_user_actor_url": { 18 | "type": "string" 19 | }, 20 | "current_user_organization_url": { 21 | "type": "string" 22 | }, 23 | "_links": { 24 | "properties": { 25 | "timeline": { 26 | "properties": { 27 | "href": { 28 | "type": "string" 29 | }, 30 | "type": { 31 | "type": "string" 32 | } 33 | }, 34 | "type": "object" 35 | }, 36 | "user": { 37 | "properties": { 38 | "href": { 39 | "type": "string" 40 | }, 41 | "type": { 42 | "type": "string" 43 | } 44 | }, 45 | "type": "object" 46 | }, 47 | "current_user_public": { 48 | "properties": { 49 | "href": { 50 | "type": "string" 51 | }, 52 | "type": { 53 | "type": "string" 54 | } 55 | }, 56 | "type": "object" 57 | }, 58 | "current_user": { 59 | "properties": { 60 | "href": { 61 | "type": "string" 62 | }, 63 | "type": { 64 | "type": "string" 65 | } 66 | }, 67 | "type": "object" 68 | }, 69 | "current_user_actor": { 70 | "properties": { 71 | "href": { 72 | "type": "string" 73 | }, 74 | "type": { 75 | "type": "string" 76 | } 77 | }, 78 | "type": "object" 79 | }, 80 | "current_user_organization": { 81 | "properties": { 82 | "href": { 83 | "type": "string" 84 | }, 85 | "type": { 86 | "type": "string" 87 | } 88 | }, 89 | "type": "object" 90 | } 91 | } 92 | } 93 | } 94 | } -------------------------------------------------------------------------------- /schemas/forkBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "organization" : { 7 | "type" : "string" , 8 | "required" : false 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /schemas/gitCommit-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "message": { 6 | "type": "string" 7 | }, 8 | "author": { 9 | "properties": { 10 | "name": { 11 | "type": "string" 12 | }, 13 | "email": { 14 | "type": "string" 15 | }, 16 | "date": { 17 | "type": "string" 18 | } 19 | }, 20 | "type": "object" 21 | }, 22 | "parents": 23 | { 24 | "type": "string" 25 | } 26 | , 27 | "tree": { 28 | "type": "string" 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /schemas/gitRefPatch-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "sha" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "force" : { 11 | "type" : "boolean" , 12 | "required" : false 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /schemas/gitignore-lang-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "name": { 6 | "type": "string" 7 | }, 8 | "source": { 9 | "type": "string" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /schemas/gitignore-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "": [ 5 | { 6 | "type": "string" 7 | } 8 | ] 9 | } -------------------------------------------------------------------------------- /schemas/headBranch-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "ref": { 6 | "type": "string" 7 | }, 8 | "url": { 9 | "type": "string" 10 | }, 11 | "object": { 12 | "properties": { 13 | "type": { 14 | "type": "string" 15 | }, 16 | "sha": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /schemas/headBranchBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "sha": { 6 | "description": "String of the SHA1 value to set this reference to.", 7 | "type": "string" 8 | }, 9 | "force": { 10 | "description": "Boolean indicating whether to force the update or to make sure the update is a fast-forward update. The default is false, so leaving this out or setting it to false will make sure you’re not overwriting work.", 11 | "type": "boolean" 12 | } 13 | }, 14 | "required": [ 15 | "sha", 16 | "force" 17 | ] 18 | } -------------------------------------------------------------------------------- /schemas/heads-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "name": { 8 | "type": "string" 9 | }, 10 | "commit": { 11 | "properties": { 12 | "sha": { 13 | "type": "string" 14 | }, 15 | "url": { 16 | "type": "string" 17 | } 18 | }, 19 | "type": "object" 20 | }, 21 | "zipball_url": { 22 | "type": "string" 23 | }, 24 | "tarball_url": { 25 | "type": "string" 26 | } 27 | }, 28 | "type": "object" 29 | } 30 | ] 31 | } -------------------------------------------------------------------------------- /schemas/hook-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "array", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "items": { 5 | "type": "object", 6 | "properties": { 7 | "url": { 8 | "type": "string" 9 | }, 10 | "updated_at": { 11 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 12 | "type": "string" 13 | }, 14 | "created_at": { 15 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 16 | "type": "string" 17 | }, 18 | "name": { 19 | "type": "string" 20 | }, 21 | "events": { 22 | "type": "array", 23 | "items": { 24 | "enum": [ 25 | "push", 26 | "issues", 27 | "issue_comment", 28 | "commit_comment", 29 | "pull_request", 30 | "pull_request_review_comment", 31 | "gollum", 32 | "watch", 33 | "download", 34 | "fork", 35 | "fork_apply", 36 | "member", 37 | "public", 38 | "team_add", 39 | "status" 40 | ] 41 | } 42 | }, 43 | "active": { 44 | "type": "boolean" 45 | }, 46 | "config": { 47 | "type": "object", 48 | "properties": { 49 | "url": { 50 | "type": "string" 51 | }, 52 | "content_type": { 53 | "type": "string" 54 | } 55 | } 56 | }, 57 | "id": { 58 | "type": "integer" 59 | } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /schemas/hookBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "active" : { 7 | "type" : "boolean" , 8 | "required" : false 9 | } , 10 | "add_events" : { 11 | "type" : "array" , 12 | "required" : false , 13 | "items" : [ 14 | { 15 | "type" : "string" 16 | } 17 | ] 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /schemas/issue-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "title" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "body" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "assignee" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "milestone" : { 19 | "type" : "number" , 20 | "required" : false 21 | } , 22 | "labels" : { 23 | "type" : "array" , 24 | "required" : false , 25 | "items" : [ 26 | { 27 | "type" : "string" 28 | } 29 | ] 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /schemas/issueBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "title" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "body" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "assignee" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "milestone" : { 19 | "type" : "number" , 20 | "required" : false 21 | } , 22 | "labels" : { 23 | "type" : "array" , 24 | "required" : false , 25 | "items" : [ 26 | { 27 | "type" : "string" 28 | } 29 | ] 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /schemas/issuesComment-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "id": { 6 | "type": "integer" 7 | }, 8 | "url": { 9 | "type": "string" 10 | }, 11 | "html_url": { 12 | "type": "string" 13 | }, 14 | "body": { 15 | "type": "string" 16 | }, 17 | "user": { 18 | "properties": { 19 | "login": { 20 | "type": "string" 21 | }, 22 | "id": { 23 | "type": "integer" 24 | }, 25 | "avatar_url": { 26 | "type": "string" 27 | }, 28 | "gravatar_id": { 29 | "type": "string" 30 | }, 31 | "url": { 32 | "type": "string" 33 | } 34 | }, 35 | "type": "object" 36 | }, 37 | "created_at": { 38 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 39 | "type": "string" 40 | }, 41 | "updated_at": { 42 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 43 | "type": "string" 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /schemas/key-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "id": { 6 | "type": "integer" 7 | }, 8 | "key": { 9 | "type": "string" 10 | }, 11 | "url": { 12 | "type": "string" 13 | }, 14 | "title": { 15 | "type": "string" 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /schemas/keyBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "title": { 6 | "type": "string" 7 | }, 8 | "key": { 9 | "type": "string" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /schemas/keys-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "id": { 8 | "type": "integer" 9 | }, 10 | "key": { 11 | "type": "string" 12 | }, 13 | "url": { 14 | "type": "string" 15 | }, 16 | "title": { 17 | "type": "string" 18 | } 19 | }, 20 | "type": "object" 21 | } 22 | ] 23 | } -------------------------------------------------------------------------------- /schemas/label-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "url": { 6 | "type": "string" 7 | }, 8 | "name": { 9 | "type": "string" 10 | }, 11 | "color": { 12 | "type": "string", 13 | "maxLength": 6, 14 | "minLength": 6 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /schemas/labels-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "url": { 8 | "type": "string" 9 | }, 10 | "name": { 11 | "type": "string" 12 | }, 13 | "color": { 14 | "type": "string", 15 | "maxLength": 6, 16 | "minLength": 6 17 | } 18 | }, 19 | "type": "object" 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /schemas/labelsBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "array" , 5 | "items" : [ 6 | { 7 | "type" : "string" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /schemas/languages-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "patternProperties": { 5 | ".*": { 6 | "type": "integer" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /schemas/markdown-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "text" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "mode" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "context" : { 15 | "type" : "string" , 16 | "required" : false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /schemas/member-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "properties": { 5 | "message": { 6 | "type": "string" 7 | }, 8 | "errors": { 9 | "type": "array", 10 | "items": { 11 | "type": "object", 12 | "properties": { 13 | "code": { 14 | "type": "string" 15 | }, 16 | "field": { 17 | "type": "string" 18 | }, 19 | "resource": { 20 | "type": "string" 21 | } 22 | } 23 | } 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /schemas/members-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /schemas/merge-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "sha": { 6 | "type": "string" 7 | }, 8 | "merged": { 9 | "type": "boolean" 10 | }, 11 | "message": { 12 | "type": "string" 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /schemas/mergePullBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "commit_message" : { 7 | "type" : "string" , 8 | "required" : false 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /schemas/mergesBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "base" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "head" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "commit_message" : { 15 | "type" : "string" , 16 | "required" : false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /schemas/mergesConflict-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "message": { 6 | "description": "Error message", 7 | "type": "string" 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /schemas/meta-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "properties": { 5 | "hooks": { 6 | "type": "array", 7 | "items": { 8 | "description": "An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from.", 9 | "type": "string" 10 | } 11 | }, 12 | "git": { 13 | "type": "array", 14 | "items": { 15 | "description": "An Array of IP addresses in CIDR format specifying the Git servers at GitHub.", 16 | "type": "string" 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /schemas/milestone-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "url": { 6 | "type": "string" 7 | }, 8 | "number": { 9 | "type": "integer" 10 | }, 11 | "state": { 12 | "enum": [ 13 | "open", 14 | "closed" 15 | ] 16 | }, 17 | "title": { 18 | "type": "string" 19 | }, 20 | "description": { 21 | "type": "string" 22 | }, 23 | "creator": { 24 | "properties": { 25 | "login": { 26 | "type": "string" 27 | }, 28 | "id": { 29 | "type": "integer" 30 | }, 31 | "avatar_url": { 32 | "type": "string" 33 | }, 34 | "gravatar_id": { 35 | "type": "string" 36 | }, 37 | "url": { 38 | "type": "string" 39 | } 40 | }, 41 | "type": "object" 42 | }, 43 | "open_issues": { 44 | "type": "integer" 45 | }, 46 | "closed_issues": { 47 | "type": "integer" 48 | }, 49 | "created_at": { 50 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 51 | "type": "string" 52 | }, 53 | "due_on": { 54 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 55 | "type": "string" 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /schemas/milestoneBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "title" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "state" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "description" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "due_on" : { 19 | "type" : "string" , 20 | "required" : false 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /schemas/milestoneUpdate-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "title" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "state" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "description" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "due_on" : { 19 | "type" : "string" , 20 | "required" : false 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /schemas/milestones-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "url": { 8 | "type": "string" 9 | }, 10 | "number": { 11 | "type": "integer" 12 | }, 13 | "state": { 14 | "enum": [ 15 | "open", 16 | "closed" 17 | ] 18 | }, 19 | "title": { 20 | "type": "string" 21 | }, 22 | "description": { 23 | "type": "string" 24 | }, 25 | "creator": { 26 | "properties": { 27 | "login": { 28 | "type": "string" 29 | }, 30 | "id": { 31 | "type": "integer" 32 | }, 33 | "avatar_url": { 34 | "type": "string" 35 | }, 36 | "gravatar_id": { 37 | "type": "string" 38 | }, 39 | "url": { 40 | "type": "string" 41 | } 42 | }, 43 | "type": "object" 44 | }, 45 | "open_issues": { 46 | "type": "integer" 47 | }, 48 | "closed_issues": { 49 | "type": "integer" 50 | }, 51 | "created_at": { 52 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 53 | "type": "string" 54 | }, 55 | "due_on": { 56 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 57 | "type": "string" 58 | } 59 | }, 60 | "type": "object" 61 | } 62 | ] 63 | } -------------------------------------------------------------------------------- /schemas/notificationMarkRead-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "last_read_at" : { 7 | "type" : "string" , 8 | "required" : false 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /schemas/notifications-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "properties": 5 | { 6 | "id": { 7 | "type": "integer" 8 | }, 9 | "repository": { 10 | "properties": { 11 | "id": { 12 | "type": "integer" 13 | }, 14 | "owner": { 15 | "properties": { 16 | "login": { 17 | "type": "string" 18 | }, 19 | "id": { 20 | "type": "integer" 21 | }, 22 | "avatar_url": { 23 | "type": "string" 24 | }, 25 | "gravatar_id": { 26 | "type": "string" 27 | }, 28 | "url": { 29 | "type": "string" 30 | } 31 | }, 32 | "type": "object" 33 | }, 34 | "name": { 35 | "type": "string" 36 | }, 37 | "full_name": { 38 | "type": "string" 39 | }, 40 | "description": { 41 | "type": "string" 42 | }, 43 | "private": { 44 | "type": "boolean" 45 | }, 46 | "fork": { 47 | "type": "boolean" 48 | }, 49 | "url": { 50 | "type": "string" 51 | }, 52 | "html_url": { 53 | "type": "string" 54 | } 55 | }, 56 | "type": "object" 57 | }, 58 | "subject": { 59 | "properties": { 60 | "title": { 61 | "type": "string" 62 | }, 63 | "url": { 64 | "type": "string" 65 | }, 66 | "latest_comment_url": { 67 | "type": "string" 68 | }, 69 | "type": { 70 | "type": "string" 71 | } 72 | }, 73 | "type": "object" 74 | }, 75 | "reason": { 76 | "type": "string" 77 | }, 78 | "unread": { 79 | "type": "boolean" 80 | }, 81 | "updated_at": { 82 | "type": "string" 83 | }, 84 | "last_read_at": { 85 | "type": "string" 86 | }, 87 | "url": { 88 | "type": "string" 89 | } 90 | }, 91 | "type": "object" 92 | } -------------------------------------------------------------------------------- /schemas/orgMembers-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "items": 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /schemas/orgPublicMembers-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /schemas/orgTeams-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "url": { 8 | "type": "string" 9 | }, 10 | "name": { 11 | "type": "string" 12 | }, 13 | "id": { 14 | "type": "integer" 15 | } 16 | }, 17 | "type": "object" 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /schemas/orgTeamsPost-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "properties": { 5 | "name": { 6 | "type": "string", 7 | "required" : true 8 | }, 9 | "repo_names": { 10 | "type": "array", 11 | "items": { 12 | "type": "string" 13 | } 14 | }, 15 | "permission": { 16 | "enum": [ 17 | "pull", 18 | "push", 19 | "admin" 20 | ] 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /schemas/organization-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "login": { 6 | "type": "string" 7 | }, 8 | "id": { 9 | "type": "integer" 10 | }, 11 | "url": { 12 | "type": "string" 13 | }, 14 | "avatar_url": { 15 | "type": "string" 16 | }, 17 | "name": { 18 | "type": "string" 19 | }, 20 | "company": { 21 | "type": "string" 22 | }, 23 | "blog": { 24 | "type": "string" 25 | }, 26 | "location": { 27 | "type": "string" 28 | }, 29 | "email": { 30 | "type": "string" 31 | }, 32 | "public_repos": { 33 | "type": "integer" 34 | }, 35 | "public_gists": { 36 | "type": "integer" 37 | }, 38 | "followers": { 39 | "type": "integer" 40 | }, 41 | "following": { 42 | "type": "integer" 43 | }, 44 | "html_url": { 45 | "type": "string" 46 | }, 47 | "created_at": { 48 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 49 | "type": "string" 50 | }, 51 | "type": { 52 | "type": "string" 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /schemas/organizationAsTeamMember-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "message" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "errors" : { 11 | "type" : "array" , 12 | "required" : false , 13 | "items" : [ 14 | { 15 | "type" : "object" , 16 | "properties" : { 17 | "code" : { 18 | "type" : "string" , 19 | "required" : false 20 | } , 21 | "field" : { 22 | "type" : "string" , 23 | "required" : false 24 | } , 25 | "resource" : { 26 | "type" : "string" , 27 | "required" : false 28 | } 29 | } 30 | } 31 | ] 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /schemas/participationStats-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "properties": { 5 | "all": { 6 | "type": "array", 7 | "items": { 8 | "type": "integer" 9 | } 10 | }, 11 | "owner": { 12 | "type": "array", 13 | "items": { 14 | "type": "integer" 15 | } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /schemas/patchGist-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "description": { 6 | "type": "string" 7 | }, 8 | "files": { 9 | "properties": { 10 | "file1.txt": { 11 | "properties": { 12 | "content": { 13 | "type": "string" 14 | } 15 | }, 16 | "type": "object" 17 | }, 18 | "old_name.txt": { 19 | "properties": { 20 | "filename": { 21 | "type": "string" 22 | }, 23 | "content": { 24 | "type": "string" 25 | } 26 | }, 27 | "type": "object" 28 | }, 29 | "new_file.txt": { 30 | "properties": { 31 | "content": { 32 | "type": "string" 33 | } 34 | }, 35 | "type": "object" 36 | }, 37 | "delete_this_file.txt": { 38 | "type": "string" 39 | } 40 | } 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /schemas/patchOrg-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "billing_email": { 6 | "description": "Billing email address. This address is not publicized.", 7 | "type": "string" 8 | }, 9 | "company": { 10 | "type": "string" 11 | }, 12 | "email": { 13 | "description": "Publicly visible email address.", 14 | "type": "string" 15 | }, 16 | "location": { 17 | "type": "string" 18 | }, 19 | "name": { 20 | "type": "string" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /schemas/postComment-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "body": { 6 | "type": "string", 7 | "required": true 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /schemas/postGist-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "description" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "public" : { 11 | "type" : "boolean" , 12 | "required" : false 13 | } , 14 | "files" : { 15 | "type" : "object" , 16 | "required" : false , 17 | "properties" : { 18 | "file1.txt" : { 19 | "type" : "object" , 20 | "required" : false , 21 | "properties" : { 22 | "content" : { 23 | "type" : "string" , 24 | "required" : false 25 | } 26 | } 27 | } 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /schemas/postRepo-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "name": { 6 | "type": "string", 7 | "required": true 8 | }, 9 | "description": { 10 | "type": "string" 11 | }, 12 | "homepage": { 13 | "type": "string" 14 | }, 15 | "private": { 16 | "description": "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account.", 17 | "type": "boolean" 18 | }, 19 | "has_issues": { 20 | "description": "True to enable issues for this repository, false to disable them. Default is true.", 21 | "type": "boolean" 22 | }, 23 | "has_wiki": { 24 | "description": "True to enable the wiki for this repository, false to disable it. Default is true.", 25 | "type": "boolean" 26 | }, 27 | "has_downloads": { 28 | "description": "True to enable downloads for this repository, false to disable them. Default is true.", 29 | "type": "boolean" 30 | }, 31 | "team_id": { 32 | "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization.", 33 | "type": "integer" 34 | }, 35 | "auto_init": { 36 | "description": "True to create an initial commit with empty README. Default is false.", 37 | "type": "boolean" 38 | }, 39 | "gitignore_template": { 40 | "description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\" Ignored if auto_init parameter is not provided. ", 41 | "type": "string" 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /schemas/pullUpdate-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "title" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "body" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "state" : { 15 | "type" : "string" , 16 | "required" : false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /schemas/pullsCommentBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "title": { 6 | "type": "string" 7 | }, 8 | "body": { 9 | "type": "string" 10 | }, 11 | "base": { 12 | "description": "The branch (or git ref) you want your changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repo that requests a merge to a base of another repo.", 13 | "type": "string" 14 | }, 15 | "head": { 16 | "description": "The branch (or git ref) where your changes are implemented.", 17 | "type": "string" 18 | } 19 | }, 20 | "required": [ 21 | "title", 22 | "base", 23 | "head" 24 | ] 25 | } -------------------------------------------------------------------------------- /schemas/pullsCommentPost-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "body" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "commit_id" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "path" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "position" : { 19 | "type" : "number" , 20 | "required" : false 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /schemas/pullsPost-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "title" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "body" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "head" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "base" : { 19 | "type" : "string" , 20 | "required" : false 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /schemas/punchCardStats-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "": [ 7 | { 8 | "type": "integer" 9 | } 10 | ] 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /schemas/putSubscription-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "subscribed" : { 7 | "type" : "boolean" , 8 | "required" : false 9 | } , 10 | "ignored" : { 11 | "type" : "boolean" , 12 | "required" : false 13 | } , 14 | "reason" : { 15 | "type" : "object" , 16 | "required" : false 17 | } , 18 | "created_at" : { 19 | "type" : "string" , 20 | "required" : false 21 | } , 22 | "url" : { 23 | "type" : "string" , 24 | "required" : false 25 | } , 26 | "thread_url" : { 27 | "type" : "string" , 28 | "required" : false 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /schemas/rate_limit-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "rate": { 6 | "properties": { 7 | "limit": { 8 | "type": "integer" 9 | }, 10 | "remaining": { 11 | "type": "integer" 12 | }, 13 | "reset": { 14 | "type": "integer" 15 | } 16 | } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /schemas/readme-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "type": { 6 | "type": "string" 7 | }, 8 | "encoding": { 9 | "type": "string" 10 | }, 11 | "size": { 12 | "type": "integer" 13 | }, 14 | "name": { 15 | "type": "string" 16 | }, 17 | "path": { 18 | "type": "string" 19 | }, 20 | "content": { 21 | "type": "string" 22 | }, 23 | "sha": { 24 | "type": "string" 25 | }, 26 | "url": { 27 | "type": "string" 28 | }, 29 | "git_url": { 30 | "type": "string" 31 | }, 32 | "html_url": { 33 | "type": "string" 34 | }, 35 | "_links": { 36 | "properties": { 37 | "git": { 38 | "type": "string" 39 | }, 40 | "self": { 41 | "type": "string" 42 | }, 43 | "html": { 44 | "type": "string" 45 | } 46 | }, 47 | "type": "object" 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /schemas/ref-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "created_at": { 8 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 9 | "type": "string" 10 | }, 11 | "updated_at": { 12 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 13 | "type": "string" 14 | }, 15 | "state": { 16 | "type": "string" 17 | }, 18 | "target_url": { 19 | "type": "string" 20 | }, 21 | "description": { 22 | "type": "string" 23 | }, 24 | "id": { 25 | "type": "integer" 26 | }, 27 | "url": { 28 | "type": "string" 29 | }, 30 | "creator": { 31 | "properties": { 32 | "login": { 33 | "type": "string" 34 | }, 35 | "id": { 36 | "type": "integer" 37 | }, 38 | "avatar_url": { 39 | "type": "string" 40 | }, 41 | "gravatar_id": { 42 | "type": "string" 43 | }, 44 | "url": { 45 | "type": "string" 46 | } 47 | }, 48 | "type": "object" 49 | } 50 | }, 51 | "type": "object" 52 | } 53 | ] 54 | } -------------------------------------------------------------------------------- /schemas/refBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "ref" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "url" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "object" : { 15 | "type" : "object" , 16 | "required" : false , 17 | "properties" : { 18 | "type" : { 19 | "type" : "string" , 20 | "required" : false 21 | } , 22 | "sha" : { 23 | "type" : "string" , 24 | "required" : false 25 | } , 26 | "url" : { 27 | "type" : "string" , 28 | "required" : false 29 | } 30 | } 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /schemas/refStatus-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "array" , 5 | "items" : [ 6 | { 7 | "type" : "object" , 8 | "properties" : { 9 | "state" : { 10 | "type" : "string" , 11 | "required" : false 12 | } , 13 | "name" : { 14 | "type" : "string" , 15 | "required" : false 16 | } , 17 | "sha" : { 18 | "type" : "string" , 19 | "required" : false 20 | } , 21 | "statuses" : { 22 | "type" : "array" , 23 | "required" : false , 24 | "items" : [ 25 | { 26 | "type" : "object" , 27 | "properties" : { 28 | "created_at" : { 29 | "type" : "string" , 30 | "required" : false 31 | } , 32 | "updated_at" : { 33 | "type" : "string" , 34 | "required" : false 35 | } , 36 | "state" : { 37 | "type" : "string" , 38 | "required" : false 39 | } , 40 | "target_url" : { 41 | "type" : "string" , 42 | "required" : false 43 | } , 44 | "description" : { 45 | "type" : "string" , 46 | "required" : false 47 | } , 48 | "id" : { 49 | "type" : "number" , 50 | "required" : false 51 | } , 52 | "url" : { 53 | "type" : "string" , 54 | "required" : false 55 | } , 56 | "context" : { 57 | "type" : "string" , 58 | "required" : false 59 | } 60 | } 61 | } 62 | ] 63 | } , 64 | "commit_url" : { 65 | "type" : "string" , 66 | "required" : false 67 | } , 68 | "repository_url" : { 69 | "type" : "string" , 70 | "required" : false 71 | } 72 | } 73 | } 74 | ] 75 | } -------------------------------------------------------------------------------- /schemas/refs-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "references": [ 5 | { 6 | "properties": { 7 | "ref": { 8 | "type": "string" 9 | }, 10 | "url": { 11 | "type": "string" 12 | }, 13 | "object": { 14 | "properties": { 15 | "type": { 16 | "type": "string" 17 | }, 18 | "sha": { 19 | "type": "string" 20 | }, 21 | "url": { 22 | "type": "string" 23 | } 24 | }, 25 | "type": "object" 26 | } 27 | }, 28 | "type": "object" 29 | } 30 | ] 31 | } -------------------------------------------------------------------------------- /schemas/refsBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "ref" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "sha" : { 11 | "type" : "string" , 12 | "required" : false 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /schemas/release-create-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "required": false, 4 | "type": "object", 5 | "properties": { 6 | "tag_name": { 7 | "required": false, 8 | "type": "string" 9 | }, 10 | "target_commitish": { 11 | "required": false, 12 | "type": "string" 13 | }, 14 | "name": { 15 | "required": false, 16 | "type": "string" 17 | }, 18 | "body": { 19 | "required": false, 20 | "type": "string" 21 | }, 22 | "draft": { 23 | "required": false, 24 | "type": "boolean" 25 | }, 26 | "prerelease": { 27 | "required": false, 28 | "type": "boolean" 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /schemas/repoComments-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "html_url": { 8 | "type": "string" 9 | }, 10 | "url": { 11 | "type": "string" 12 | }, 13 | "id": { 14 | "type": "integer" 15 | }, 16 | "body": { 17 | "type": "string" 18 | }, 19 | "path": { 20 | "type": "string" 21 | }, 22 | "position": { 23 | "type": "integer" 24 | }, 25 | "line": { 26 | "type": "integer" 27 | }, 28 | "commit_id": { 29 | "type": "string" 30 | }, 31 | "user": { 32 | "properties": { 33 | "login": { 34 | "type": "string" 35 | }, 36 | "id": { 37 | "type": "integer" 38 | }, 39 | "avatar_url": { 40 | "type": "string" 41 | }, 42 | "gravatar_id": { 43 | "type": "string" 44 | }, 45 | "url": { 46 | "type": "string" 47 | } 48 | }, 49 | "type": "object" 50 | }, 51 | "created_at": { 52 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 53 | "type": "string" 54 | }, 55 | "updated_at": { 56 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 57 | "type": "string" 58 | } 59 | }, 60 | "type": "object" 61 | } 62 | ] 63 | } -------------------------------------------------------------------------------- /schemas/repoCommit-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "properties": { 5 | "sha": { 6 | "type": "string" 7 | }, 8 | "url": { 9 | "type": "string" 10 | }, 11 | "author": { 12 | "type": "object", 13 | "properties": { 14 | "date": { 15 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 16 | "type": "string" 17 | }, 18 | "name": { 19 | "type": "string" 20 | }, 21 | "email": { 22 | "type": "string" 23 | } 24 | } 25 | }, 26 | "committer": { 27 | "type": "object", 28 | "properties": { 29 | "date": { 30 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 31 | "type": "string" 32 | }, 33 | "name": { 34 | "type": "string" 35 | }, 36 | "email": { 37 | "type": "string" 38 | } 39 | } 40 | }, 41 | "message": { 42 | "type": "string" 43 | }, 44 | "tree": { 45 | "type": "object", 46 | "properties": { 47 | "url": { 48 | "type": "string" 49 | }, 50 | "sha": { 51 | "type": "string" 52 | } 53 | } 54 | }, 55 | "parents": { 56 | "type": "array", 57 | "items": { 58 | "type": "object", 59 | "properties": { 60 | "url": { 61 | "type": "string" 62 | }, 63 | "sha": { 64 | "type": "string" 65 | } 66 | } 67 | } 68 | } 69 | } 70 | } -------------------------------------------------------------------------------- /schemas/repoCommitBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "message" : { 7 | "type" : "string" , 8 | "required" : true 9 | } , 10 | "author" : { 11 | "type" : "object" , 12 | "required" : false , 13 | "properties" : { 14 | "name" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "email" : { 19 | "type" : "string" , 20 | "required" : false 21 | } , 22 | "date" : { 23 | "type" : "string" , 24 | "required" : false 25 | } 26 | } 27 | } , 28 | "parents" : { 29 | "type" : "array" , 30 | "required" : true , 31 | "items" : [ 32 | { 33 | "type" : "string" 34 | } 35 | ] 36 | } , 37 | "tree" : { 38 | "type" : "string" , 39 | "required" : true 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /schemas/repoEdit-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "name" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "description" : { 11 | "type" : "string" , 12 | "required" : false 13 | } , 14 | "homepage" : { 15 | "type" : "string" , 16 | "required" : false 17 | } , 18 | "private" : { 19 | "type" : "boolean" , 20 | "required" : false 21 | } , 22 | "has_issues" : { 23 | "type" : "boolean" , 24 | "required" : false 25 | } , 26 | "has_wiki" : { 27 | "type" : "boolean" , 28 | "required" : false 29 | } , 30 | "has_downloads" : { 31 | "type" : "boolean" , 32 | "required" : false 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /schemas/repositories-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "id": { 8 | "type": "integer" 9 | }, 10 | "owner": { 11 | "properties": { 12 | "login": { 13 | "type": "string" 14 | }, 15 | "id": { 16 | "type": "integer" 17 | }, 18 | "avatar_url": { 19 | "type": "string" 20 | }, 21 | "gravatar_id": { 22 | "type": "string" 23 | }, 24 | "url": { 25 | "type": "string" 26 | } 27 | }, 28 | "type": "object" 29 | }, 30 | "name": { 31 | "type": "string" 32 | }, 33 | "full_name": { 34 | "type": "string" 35 | }, 36 | "description": { 37 | "type": "string" 38 | }, 39 | "private": { 40 | "type": "boolean" 41 | }, 42 | "fork": { 43 | "type": "boolean" 44 | }, 45 | "url": { 46 | "type": "string" 47 | }, 48 | "html_url": { 49 | "type": "string" 50 | } 51 | }, 52 | "type": "object" 53 | } 54 | ] 55 | } -------------------------------------------------------------------------------- /schemas/schema-issues-by-keyword-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "required": false, 4 | "type": "object", 5 | "properties": { 6 | "issues": { 7 | "required": false, 8 | "type": "array", 9 | "items": { 10 | "required": false, 11 | "type": "object", 12 | "properties": { 13 | "body": { 14 | "required": false, 15 | "type": "string" 16 | }, 17 | "comments": { 18 | "required": false, 19 | "type": "integer" 20 | }, 21 | "created_at": { 22 | "required": false, 23 | "type": "string" 24 | }, 25 | "gravatar_id": { 26 | "required": false, 27 | "type": "string" 28 | }, 29 | "html_url": { 30 | "required": false, 31 | "type": "string" 32 | }, 33 | "labels": { 34 | "required": false, 35 | "type": "array", 36 | "items": { 37 | "required": false, 38 | "type": "string" 39 | } 40 | }, 41 | "number": { 42 | "required": false, 43 | "type": "integer" 44 | }, 45 | "position": { 46 | "required": false, 47 | "type": "integer" 48 | }, 49 | "state": { 50 | "required": false, 51 | "type": "string" 52 | }, 53 | "title": { 54 | "required": false, 55 | "type": "string" 56 | }, 57 | "updated_at": { 58 | "required": false, 59 | "type": "string" 60 | }, 61 | "user": { 62 | "required": false, 63 | "type": "string" 64 | }, 65 | "votes": { 66 | "required": false, 67 | "type": "integer" 68 | } 69 | } 70 | } 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /schemas/search-issues-by-keyword-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "required": false, 4 | "type": "object", 5 | "properties": { 6 | "issues": { 7 | "required": false, 8 | "type": "array", 9 | "items": { 10 | "required": false, 11 | "type": "object", 12 | "properties": { 13 | "body": { 14 | "required": false, 15 | "type": "string" 16 | }, 17 | "comments": { 18 | "required": false, 19 | "type": "integer" 20 | }, 21 | "created_at": { 22 | "required": false, 23 | "type": "string" 24 | }, 25 | "gravatar_id": { 26 | "required": false, 27 | "type": "string" 28 | }, 29 | "html_url": { 30 | "required": false, 31 | "type": "string" 32 | }, 33 | "labels": { 34 | "required": false, 35 | "type": "array", 36 | "items": { 37 | "required": false, 38 | "type": "string" 39 | } 40 | }, 41 | "number": { 42 | "required": false, 43 | "type": "integer" 44 | }, 45 | "position": { 46 | "required": false, 47 | "type": "integer" 48 | }, 49 | "state": { 50 | "required": false, 51 | "type": "string" 52 | }, 53 | "title": { 54 | "required": false, 55 | "type": "string" 56 | }, 57 | "updated_at": { 58 | "required": false, 59 | "type": "string" 60 | }, 61 | "user": { 62 | "required": false, 63 | "type": "string" 64 | }, 65 | "votes": { 66 | "required": false, 67 | "type": "integer" 68 | } 69 | } 70 | } 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /schemas/search-user-by-email-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "required": false, 4 | "type": "object", 5 | "properties": { 6 | "user": { 7 | "required": false, 8 | "type": "object", 9 | "properties": { 10 | "public_repo_count": { 11 | "required": false, 12 | "type": "integer" 13 | }, 14 | "public_gist_count": { 15 | "required": false, 16 | "type": "integer" 17 | }, 18 | "followers_count": { 19 | "required": false, 20 | "type": "integer" 21 | }, 22 | "following_count": { 23 | "required": false, 24 | "type": "integer" 25 | }, 26 | "created": { 27 | "required": false, 28 | "type": "string" 29 | }, 30 | "created_at": { 31 | "required": false, 32 | "type": "string" 33 | }, 34 | "name": { 35 | "required": false, 36 | "type": "string" 37 | }, 38 | "company": { 39 | "required": false, 40 | "type": "string" 41 | }, 42 | "blog": { 43 | "required": false, 44 | "type": "string" 45 | }, 46 | "location": { 47 | "required": false, 48 | "type": "string" 49 | }, 50 | "email": { 51 | "required": false, 52 | "type": "string" 53 | }, 54 | "id": { 55 | "required": false, 56 | "type": "integer" 57 | }, 58 | "login": { 59 | "required": false, 60 | "type": "string" 61 | }, 62 | "type": { 63 | "required": false, 64 | "type": "string" 65 | }, 66 | "gravatar_id": { 67 | "required": false, 68 | "type": "string" 69 | } 70 | } 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /schemas/search-users-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "properties": { 5 | "total_count": { 6 | "type": "integer" 7 | }, 8 | "items": { 9 | "type": "array", 10 | "items": { 11 | "type": "object", 12 | "properties": { 13 | "login": { 14 | "type": "string" 15 | }, 16 | "id": { 17 | "type": "integer" 18 | }, 19 | "avatar_url": { 20 | "type": "string" 21 | }, 22 | "gravatar_id": { 23 | "type": "string" 24 | }, 25 | "url": { 26 | "type": "string" 27 | }, 28 | "html_url": { 29 | "type": "string" 30 | }, 31 | "followers_url": { 32 | "type": "string" 33 | }, 34 | "subscriptions_url": { 35 | "type": "string" 36 | }, 37 | "organizations_url": { 38 | "type": "string" 39 | }, 40 | "repos_url": { 41 | "type": "string" 42 | }, 43 | "received_events_url": { 44 | "type": "string" 45 | }, 46 | "type": { 47 | "type": "string" 48 | }, 49 | "score": { 50 | "type": "number" 51 | } 52 | } 53 | } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /schemas/stargazers-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /schemas/subscribition-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "subscribed": { 6 | "type": "boolean" 7 | }, 8 | "ignored": { 9 | "type": "boolean" 10 | }, 11 | "reason": { 12 | "type": "string" 13 | }, 14 | "created_at": { 15 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 16 | "type": "string" 17 | }, 18 | "url": { 19 | "type": "string" 20 | }, 21 | "repository_url": { 22 | "type": "string" 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /schemas/subscribitionBody-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "subscribed" : { 7 | "type" : "boolean" , 8 | "required" : false 9 | } , 10 | "ignored" : { 11 | "type" : "boolean" , 12 | "required" : false 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /schemas/subscription-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "subscribed":{ 6 | "type": "boolean" 7 | }, 8 | "ignored": { 9 | "type": "boolean" 10 | }, 11 | "reason": { 12 | "type": "boolean" 13 | }, 14 | "created_at": { 15 | "type": "string" 16 | }, 17 | "url": { 18 | "type": "string" 19 | }, 20 | "thread_url": { 21 | "type": "string" 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /schemas/tag-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "tag": { 6 | "type": "string" 7 | }, 8 | "sha": { 9 | "type": "string" 10 | }, 11 | "url": { 12 | "type": "string" 13 | }, 14 | "message": { 15 | "type": "string" 16 | }, 17 | "tagger": { 18 | "properties": { 19 | "name": { 20 | "type": "string" 21 | }, 22 | "email": { 23 | "type": "string" 24 | }, 25 | "date": { 26 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 27 | "type": "string" 28 | } 29 | }, 30 | "type": "object" 31 | }, 32 | "object": { 33 | "properties": { 34 | "type": { 35 | "type": "string" 36 | }, 37 | "sha": { 38 | "type": "string" 39 | }, 40 | "url": { 41 | "type": "string" 42 | } 43 | }, 44 | "type": "object" 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /schemas/tags-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "tag": { 6 | "type": "string", 7 | "required": true 8 | }, 9 | "message": { 10 | "description": "String of the tag message.", 11 | "type": "string", 12 | "required": true 13 | }, 14 | "object": { 15 | "description": "String of the SHA of the git object this is tagging.", 16 | "type": "string", 17 | "required": true 18 | }, 19 | "type": { 20 | "description": "String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob.", 21 | "type": "string", 22 | "required": true 23 | }, 24 | "tagger": { 25 | "properties": { 26 | "name": { 27 | "description": "String of the name of the author of the tag.", 28 | "type": "string" 29 | }, 30 | "email": { 31 | "description": "String of the email of the author of the tag.", 32 | "type": "string" 33 | }, 34 | "date": { 35 | "description": "Timestamp of when this object was tagged.", 36 | "type": "string" 37 | } 38 | }, 39 | "type": "object", 40 | "required": true 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /schemas/team-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "url": { 6 | "type": "string" 7 | }, 8 | "name": { 9 | "type": "string" 10 | }, 11 | "id": { 12 | "type": "integer" 13 | }, 14 | "permission": { 15 | "type": "string" 16 | }, 17 | "members_count": { 18 | "type": "integer" 19 | }, 20 | "repos_count": { 21 | "type": "integer" 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /schemas/teamMembership-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "required" : true , 3 | "$schema" : "http://json-schema.org/draft-03/schema" , 4 | "type" : "object" , 5 | "properties" : { 6 | "url" : { 7 | "type" : "string" , 8 | "required" : false 9 | } , 10 | "state" : { 11 | "type" : "string" , 12 | "required" : false 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /schemas/teams-list-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "required": false, 4 | "type": "array", 5 | "items": { 6 | "required": false, 7 | "type": "object", 8 | "properties": { 9 | "id": { 10 | "required": false, 11 | "type": "integer" 12 | }, 13 | "members_count": { 14 | "required": false, 15 | "type": "integer" 16 | }, 17 | "name": { 18 | "required": false, 19 | "type": "string" 20 | }, 21 | "organization": { 22 | "required": false, 23 | "type": "object", 24 | "properties": { 25 | "login": { 26 | "required": false, 27 | "type": "string" 28 | }, 29 | "id": { 30 | "required": false, 31 | "type": "integer" 32 | }, 33 | "url": { 34 | "required": false, 35 | "type": "string" 36 | }, 37 | "avatar_url": { 38 | "required": false, 39 | "type": "string" 40 | } 41 | } 42 | }, 43 | "permission": { 44 | "required": false, 45 | "type": "string" 46 | }, 47 | "repos_count": { 48 | "required": false, 49 | "type": "integer" 50 | }, 51 | "url": { 52 | "required": false, 53 | "type": "string" 54 | } 55 | } 56 | } 57 | } -------------------------------------------------------------------------------- /schemas/teams-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "url": { 8 | "type": "string" 9 | }, 10 | "name": { 11 | "type": "string" 12 | }, 13 | "id": { 14 | "type": "integer" 15 | } 16 | }, 17 | "type": "object" 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /schemas/tree-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "sha": { 6 | "type": "string" 7 | }, 8 | "url": { 9 | "type": "string" 10 | }, 11 | "tree": { 12 | "items": { 13 | "type": "object", 14 | "properties": { 15 | "path": { 16 | "type": "string" 17 | }, 18 | "mode": { 19 | "type": "string" 20 | }, 21 | "type": { 22 | "type": "string" 23 | }, 24 | "size": { 25 | "type": "integer" 26 | }, 27 | "sha": { 28 | "type": "string" 29 | }, 30 | "url": { 31 | "type": "string" 32 | } 33 | } 34 | }, 35 | "type": "array" 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /schemas/trees-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "$schema": "http://json-schema.org/draft-03/schema", 4 | "required": true, 5 | "properties": { 6 | "sha": { 7 | "description": "SHA1 checksum ID of the object in the tree.", 8 | "type": "string" 9 | }, 10 | "url": { 11 | "type": "string" 12 | }, 13 | "base_tree": { 14 | "type": "string" 15 | }, 16 | "tree": { 17 | "type": "array", 18 | "items": { 19 | "type": "object", 20 | "properties": { 21 | "path": { 22 | "type": "string" 23 | }, 24 | "mode": { 25 | "description": "One of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit) or 120000 for a blob that specifies the path of a symlink.", 26 | "type": "string", 27 | "enum": [ 28 | "100644", 29 | "100755", 30 | "040000", 31 | "160000", 32 | "120000" 33 | ] 34 | }, 35 | "type": { 36 | "type": "string", 37 | "enum": [ 38 | "blob", 39 | "tree", 40 | "commit" 41 | ] 42 | }, 43 | "sha": { 44 | "description": "SHA1 checksum ID of the object in the tree.", 45 | "type": "string", 46 | "required": false 47 | }, 48 | "url": { 49 | "type": "string", 50 | "required": false 51 | }, 52 | "oneOf": { 53 | "type": "array", 54 | "items": { 55 | "sha": { 56 | "description": "SHA1 checksum ID of the object in the tree.", 57 | "type": "string" 58 | } 59 | } 60 | } 61 | } 62 | } 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /schemas/user-emails-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "item": { "type": "string" } 5 | } 6 | -------------------------------------------------------------------------------- /schemas/user-emails_final-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "": [ 5 | { 6 | "properties": { 7 | "email": { 8 | "type": "string" 9 | }, 10 | "verified": { 11 | "type": "boolean" 12 | }, 13 | "primary": { 14 | "type": "boolean" 15 | } 16 | }, 17 | "type": "object" 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /schemas/user-keys-keyId-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "id": { 6 | "type": "integer" 7 | }, 8 | "key": { 9 | "type": "string" 10 | }, 11 | "url": { 12 | "type": "string" 13 | }, 14 | "title": { 15 | "type": "string" 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /schemas/user-keys-post-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "title": { 6 | "type": "string" 7 | }, 8 | "key": { 9 | "type": "string" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /schemas/user-keys-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "": [ 5 | { 6 | "properties": { 7 | "id": { 8 | "type": "integer" 9 | }, 10 | "key": { 11 | "type": "string" 12 | }, 13 | "url": { 14 | "type": "string" 15 | }, 16 | "title": { 17 | "type": "string" 18 | } 19 | }, 20 | "type": "object" 21 | } 22 | ] 23 | } -------------------------------------------------------------------------------- /schemas/user-update-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "name": { 6 | "type": "string" 7 | }, 8 | "email": { 9 | "type": "string" 10 | }, 11 | "blog": { 12 | "type": "string" 13 | }, 14 | "company": { 15 | "type": "string" 16 | }, 17 | "location": { 18 | "type": "string" 19 | }, 20 | "hireable": { 21 | "type": "boolean" 22 | }, 23 | "bio": { 24 | "type": "string" 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /schemas/user-userId-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "object", 4 | "properties": { 5 | "login": { 6 | "type": "string" 7 | }, 8 | "id": { 9 | "type": "integer" 10 | }, 11 | "avatar_url": { 12 | "type": "string" 13 | }, 14 | "gravatar_id": { 15 | "type": "string" 16 | }, 17 | "url": { 18 | "type": "string" 19 | }, 20 | "name": { 21 | "type": "string" 22 | }, 23 | "company": { 24 | "type": "string" 25 | }, 26 | "blog": { 27 | "type": "string" 28 | }, 29 | "location": { 30 | "type": "string" 31 | }, 32 | "email": { 33 | "description": "Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile).", 34 | "type": "string" 35 | }, 36 | "hireable": { 37 | "type": "boolean" 38 | }, 39 | "bio": { 40 | "type": "string" 41 | }, 42 | "public_repos": { 43 | "type": "integer" 44 | }, 45 | "public_gists": { 46 | "type": "integer" 47 | }, 48 | "followers": { 49 | "type": "integer" 50 | }, 51 | "following": { 52 | "type": "integer" 53 | }, 54 | "html_url": { 55 | "type": "string" 56 | }, 57 | "created_at": { 58 | "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", 59 | "type": "string" 60 | }, 61 | "type": { 62 | "type": "string" 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /schemas/users-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "list": [ 5 | { 6 | "properties": { 7 | "login": { 8 | "type": "string" 9 | }, 10 | "id": { 11 | "type": "integer" 12 | }, 13 | "avatar_url": { 14 | "type": "string" 15 | }, 16 | "gravatar_id": { 17 | "type": "string" 18 | }, 19 | "url": { 20 | "type": "string" 21 | } 22 | }, 23 | "type": "object" 24 | } 25 | ] 26 | } -------------------------------------------------------------------------------- /schemas/users-userId-keys-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "": [ 5 | { 6 | "id": { 7 | "type": "integer" 8 | }, 9 | "key": { 10 | "type": "string" 11 | } 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /schemas/users-userId-orgs-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-03/schema", 3 | "type": "array", 4 | "": [ 5 | { 6 | "login": { 7 | "type": "string" 8 | }, 9 | "id": { 10 | "type": "integer" 11 | }, 12 | "url": { 13 | "type": "string" 14 | }, 15 | "avatar_url": { 16 | "type": "string" 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /securitySchemes/oauth_2_0.raml: -------------------------------------------------------------------------------- 1 | description: | 2 | OAuth2 is a protocol that lets external apps request authorization to private 3 | details in a user's GitHub account without getting their password. This is 4 | preferred over Basic Authentication because tokens can be limited to specific 5 | types of data, and can be revoked by users at any time. 6 | type: OAuth 2.0 7 | describedBy: 8 | headers: 9 | Authorization: 10 | description: | 11 | Used to send a valid OAuth 2 access token. Do not use together with 12 | the "access_token" query string parameter. 13 | queryParameters: 14 | access_token: 15 | description: | 16 | Used to send a valid OAuth 2 access token. Do not use together with 17 | the "Authorization" header 18 | responses: 19 | 404: 20 | description: Unauthorized 21 | settings: 22 | authorizationUri: https://github.com/login/oauth/authorize 23 | accessTokenUri: https://github.com/login/oauth/access_token 24 | authorizationGrants: [ code ] 25 | scopes: 26 | - user 27 | - "user:email" 28 | - "user:follow" 29 | - public_repo 30 | - repo 31 | - "repo:status" 32 | - delete_repo 33 | - notifications 34 | - gist 35 | -------------------------------------------------------------------------------- /traits/filterable.raml: -------------------------------------------------------------------------------- 1 | queryParameters: 2 | filter: 3 | description: | 4 | Issues assigned to you / created by you / mentioning you / you're 5 | subscribed to updates for / All issues the authenticated user can see 6 | required: true 7 | enum: 8 | - assigned 9 | - created 10 | - mentioned 11 | - subscribed 12 | - all 13 | default: all 14 | state: 15 | required: true 16 | enum: [ open , closed ] 17 | default: open 18 | labels: 19 | description: String list of comma separated Label names. Example - bug,ui,@high. 20 | required: true 21 | sort: 22 | required: true 23 | enum: 24 | - created 25 | - updated 26 | - comments 27 | default: created 28 | direction: 29 | required: true 30 | enum: [ asc , desc ] 31 | default: desc 32 | since: 33 | description: | 34 | Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. 35 | Only issues updated at or after this time are returned. 36 | -------------------------------------------------------------------------------- /traits/filterableSince.raml: -------------------------------------------------------------------------------- 1 | queryParameters: 2 | since: 3 | description: | 4 | The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. 5 | Example: "2012-10-09T23:39:01Z". 6 | -------------------------------------------------------------------------------- /traits/historical.raml: -------------------------------------------------------------------------------- 1 | queryParameters: 2 | since: 3 | description: | 4 | Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. 5 | Only gists updated at or after this time are returned. 6 | -------------------------------------------------------------------------------- /traits/notifications.raml: -------------------------------------------------------------------------------- 1 | queryParameters: 2 | all: 3 | description: True to show notifications marked as read. 4 | type: boolean 5 | participating: 6 | description: | 7 | True to show only notifications in which the user is directly participating 8 | or mentioned. 9 | type: boolean 10 | -------------------------------------------------------------------------------- /traits/ordering.raml: -------------------------------------------------------------------------------- 1 | queryParameters: 2 | order: 3 | description: The sort field. if sort param is provided. Can be either asc or desc. 4 | enum: [ desc , asc ] 5 | default: desc 6 | -------------------------------------------------------------------------------- /traits/ordering2.raml: -------------------------------------------------------------------------------- 1 | queryParameters: 2 | direction: 3 | description: "Ignored without 'sort' parameter." 4 | sort: 5 | description: "" 6 | -------------------------------------------------------------------------------- /traits/state.raml: -------------------------------------------------------------------------------- 1 | queryParameters: 2 | state: 3 | description: String to filter by state. 4 | enum: [ open , closed ] 5 | default: open 6 | -------------------------------------------------------------------------------- /uploadsApi.raml: -------------------------------------------------------------------------------- 1 | #%RAML 0.8 2 | title: GitHub Upload 3 | version: v3 4 | baseUri: https://uploads.github.com/ 5 | mediaType: application/json 6 | securitySchemes: 7 | - oauth_2_0: !include securitySchemes/oauth_2_0.raml 8 | schemas: 9 | - assetsPost: !include schemas/assetsPost-schema.json 10 | resourceTypes: 11 | - item: !include resourceTypes/item.raml 12 | - base: !include resourceTypes/base.raml 13 | securedBy: [ oauth_2_0 ] 14 | /repos/{ownerId}/{repoId}: 15 | type: item 16 | uriParameters: 17 | ownerId: 18 | description: Id of the owner. 19 | type: integer 20 | repoId: 21 | description: Id of repository. 22 | type: integer 23 | /releases/{id}/assets: 24 | type: base 25 | post: 26 | description: | 27 | Upload a release asset 28 | This is a unique endpoint. The request domain changes from "api.github.com" to "uploads.github.com". You need to use an HTTP client which supports SNI to make calls to this endpoint. 29 | The asset data is expected in its raw binary form, rather than JSON. Everything else about the endpoint is the same. Pass your authentication exactly the same as the rest of the API. 30 | headers: 31 | Content-Type: 32 | description: The content type of the asset. This should be set in the Header. For a list of acceptable types, refer this list of common media types. 33 | required: true 34 | example: application/zip 35 | queryParameters: 36 | name: 37 | description: The file name of the asset. This should be set in the URI query parameter. 38 | required: true 39 | example: foo.zip 40 | responses: 41 | 201: 42 | body: 43 | application/json: 44 | schema: assetsPost 45 | example: !include examples/assetsPost-example.json 46 | documentation: 47 | - title: Headline 48 | content: !include docs/uploadsApi/headline.md --------------------------------------------------------------------------------