|
1 | 1 | {
|
2 | 2 | "openapi": "3.0.3",
|
3 | 3 | "info": {
|
4 |
| - "version": "2.4.0", |
| 4 | + "version": "2.4.1", |
5 | 5 | "title": "GitHub's official OpenAPI spec + Octokit extension",
|
6 | 6 | "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
|
7 | 7 | "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
|
|
38862 | 38862 | "updated_at"
|
38863 | 38863 | ]
|
38864 | 38864 | },
|
| 38865 | + "author_association": { |
| 38866 | + "title": "author_association", |
| 38867 | + "type": "string", |
| 38868 | + "example": "OWNER", |
| 38869 | + "description": "How the author is associated with the repository.", |
| 38870 | + "enum": [ |
| 38871 | + "COLLABORATOR", |
| 38872 | + "CONTRIBUTOR", |
| 38873 | + "FIRST_TIMER", |
| 38874 | + "FIRST_TIME_CONTRIBUTOR", |
| 38875 | + "MANNEQUIN", |
| 38876 | + "MEMBER", |
| 38877 | + "NONE", |
| 38878 | + "OWNER" |
| 38879 | + ] |
| 38880 | + }, |
38865 | 38881 | "issue-simple": {
|
38866 | 38882 | "title": "Issue Simple",
|
38867 | 38883 | "description": "Issue Simple",
|
|
38975 | 38991 | "format": "date-time",
|
38976 | 38992 | "example": "2011-04-22T13:33:48Z"
|
38977 | 38993 | },
|
38978 |
| - "author_association": { "type": "string" }, |
| 38994 | + "author_association": { |
| 38995 | + "$ref": "#/components/schemas/author_association" |
| 38996 | + }, |
38979 | 38997 | "body_html": { "type": "string" },
|
38980 | 38998 | "body_text": { "type": "string" },
|
38981 | 38999 | "timeline_url": { "type": "string", "format": "uri" },
|
|
39078 | 39096 | },
|
39079 | 39097 | "issue_url": { "type": "string", "format": "uri" },
|
39080 | 39098 | "author_association": {
|
39081 |
| - "type": "string", |
39082 |
| - "enum": [ |
39083 |
| - "collaborator", |
39084 |
| - "contributor", |
39085 |
| - "first_timer", |
39086 |
| - "first_time_contributor", |
39087 |
| - "mannequin", |
39088 |
| - "member", |
39089 |
| - "none", |
39090 |
| - "owner" |
39091 |
| - ] |
| 39099 | + "$ref": "#/components/schemas/author_association" |
39092 | 39100 | },
|
39093 | 39101 | "performed_via_github_app": {
|
39094 | 39102 | "nullable": true,
|
|
39382 | 39390 | "format": "date-time",
|
39383 | 39391 | "example": "2011-04-18T23:23:56Z"
|
39384 | 39392 | },
|
39385 |
| - "author_association": { "type": "string" } |
| 39393 | + "author_association": { |
| 39394 | + "$ref": "#/components/schemas/author_association" |
| 39395 | + } |
39386 | 39396 | },
|
39387 | 39397 | "required": [
|
39388 | 39398 | "url",
|
|
39568 | 39578 | "nullable": true,
|
39569 | 39579 | "allOf": [{ "$ref": "#/components/schemas/integration" }]
|
39570 | 39580 | },
|
39571 |
| - "author_association": { "type": "string" }, |
| 39581 | + "author_association": { |
| 39582 | + "$ref": "#/components/schemas/author_association" |
| 39583 | + }, |
39572 | 39584 | "reactions": { "$ref": "#/components/schemas/reaction-rollup" }
|
39573 | 39585 | },
|
39574 | 39586 | "required": [
|
|
44248 | 44260 | },
|
44249 | 44261 | "created_at": { "type": "string", "format": "date-time" },
|
44250 | 44262 | "updated_at": { "type": "string", "format": "date-time" },
|
44251 |
| - "author_association": { "type": "string" }, |
| 44263 | + "author_association": { |
| 44264 | + "$ref": "#/components/schemas/author_association" |
| 44265 | + }, |
44252 | 44266 | "reactions": { "$ref": "#/components/schemas/reaction-rollup" }
|
44253 | 44267 | },
|
44254 | 44268 | "required": [
|
|
44498 | 44512 | "self"
|
44499 | 44513 | ]
|
44500 | 44514 | },
|
44501 |
| - "author_association": { "type": "string", "example": "OWNER" }, |
| 44515 | + "author_association": { |
| 44516 | + "$ref": "#/components/schemas/author_association" |
| 44517 | + }, |
44502 | 44518 | "draft": {
|
44503 | 44519 | "description": "Indicates whether or not the pull request is a draft.",
|
44504 | 44520 | "example": false,
|
|
46035 | 46051 | "$ref": "#/components/schemas/issue-event-project-card"
|
46036 | 46052 | },
|
46037 | 46053 | "rename": { "$ref": "#/components/schemas/issue-event-rename" },
|
46038 |
| - "author_association": { "type": "string" }, |
| 46054 | + "author_association": { |
| 46055 | + "$ref": "#/components/schemas/author_association" |
| 46056 | + }, |
46039 | 46057 | "lock_reason": { "type": "string", "nullable": true }
|
46040 | 46058 | },
|
46041 | 46059 | "required": [
|
|
46083 | 46101 | "example": "\"2020-07-09T00:17:36Z\""
|
46084 | 46102 | },
|
46085 | 46103 | "author_association": {
|
46086 |
| - "type": "string", |
46087 |
| - "example": "\"COLLABORATOR\"" |
| 46104 | + "$ref": "#/components/schemas/author_association" |
46088 | 46105 | },
|
46089 | 46106 | "body": { "type": "string", "example": "\":+1:\"" },
|
46090 | 46107 | "lock_reason": { "type": "string", "example": "\"off-topic\"" },
|
|
47040 | 47057 | "self"
|
47041 | 47058 | ]
|
47042 | 47059 | },
|
47043 |
| - "author_association": { "type": "string", "example": "OWNER" }, |
| 47060 | + "author_association": { |
| 47061 | + "$ref": "#/components/schemas/author_association" |
| 47062 | + }, |
47044 | 47063 | "draft": {
|
47045 | 47064 | "description": "Indicates whether or not the pull request is a draft.",
|
47046 | 47065 | "example": false,
|
|
47204 | 47223 | "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
|
47205 | 47224 | },
|
47206 | 47225 | "author_association": {
|
47207 |
| - "description": "How the author of the comment is associated with the pull request.", |
47208 |
| - "type": "string", |
47209 |
| - "example": "OWNER" |
| 47226 | + "$ref": "#/components/schemas/author_association" |
47210 | 47227 | },
|
47211 | 47228 | "_links": {
|
47212 | 47229 | "type": "object",
|
|
47395 | 47412 | },
|
47396 | 47413 | "body_html": { "type": "string" },
|
47397 | 47414 | "body_text": { "type": "string" },
|
47398 |
| - "author_association": { "type": "string" } |
| 47415 | + "author_association": { |
| 47416 | + "$ref": "#/components/schemas/author_association" |
| 47417 | + } |
47399 | 47418 | },
|
47400 | 47419 | "required": [
|
47401 | 47420 | "id",
|
|
47471 | 47490 | "format": "uri",
|
47472 | 47491 | "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1"
|
47473 | 47492 | },
|
47474 |
| - "author_association": { "type": "string" }, |
| 47493 | + "author_association": { |
| 47494 | + "$ref": "#/components/schemas/author_association" |
| 47495 | + }, |
47475 | 47496 | "_links": {
|
47476 | 47497 | "type": "object",
|
47477 | 47498 | "properties": {
|
|
48513 | 48534 | },
|
48514 | 48535 | "body": { "type": "string" },
|
48515 | 48536 | "score": { "type": "integer" },
|
48516 |
| - "author_association": { "type": "string" }, |
| 48537 | + "author_association": { |
| 48538 | + "$ref": "#/components/schemas/author_association" |
| 48539 | + }, |
48517 | 48540 | "draft": { "type": "boolean" },
|
48518 | 48541 | "repository": { "$ref": "#/components/schemas/repository" },
|
48519 | 48542 | "body_html": { "type": "string" },
|
|
50406 | 50429 | },
|
50407 | 50430 | "created_at": "2011-04-18T23:23:56Z",
|
50408 | 50431 | "updated_at": "2011-04-18T23:23:56Z",
|
50409 |
| - "author_association": "collaborator" |
| 50432 | + "author_association": "COLLABORATOR" |
50410 | 50433 | }
|
50411 | 50434 | ]
|
50412 | 50435 | },
|
|
50438 | 50461 | },
|
50439 | 50462 | "created_at": "2011-04-18T23:23:56Z",
|
50440 | 50463 | "updated_at": "2011-04-18T23:23:56Z",
|
50441 |
| - "author_association": "collaborator" |
| 50464 | + "author_association": "COLLABORATOR" |
50442 | 50465 | }
|
50443 | 50466 | },
|
50444 | 50467 | "gist-commit-items": {
|
|
50945 | 50968 | "open_issues": 1,
|
50946 | 50969 | "watchers": 1
|
50947 | 50970 | },
|
50948 |
| - "author_association": "collaborator" |
| 50971 | + "author_association": "COLLABORATOR" |
50949 | 50972 | }
|
50950 | 50973 | ]
|
50951 | 50974 | },
|
|
57512 | 57535 | },
|
57513 | 57536 | "created_at": "2011-04-14T16:00:49Z",
|
57514 | 57537 | "updated_at": "2011-04-14T16:00:49Z",
|
57515 |
| - "author_association": "collaborator" |
| 57538 | + "author_association": "COLLABORATOR" |
57516 | 57539 | }
|
57517 | 57540 | ]
|
57518 | 57541 | },
|
|
57527 | 57550 | "position": 4,
|
57528 | 57551 | "line": 14,
|
57529 | 57552 | "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
57530 |
| - "author_association": "collaborator", |
| 57553 | + "author_association": "COLLABORATOR", |
57531 | 57554 | "user": {
|
57532 | 57555 | "login": "octocat",
|
57533 | 57556 | "id": 1,
|
|
57563 | 57586 | "position": 4,
|
57564 | 57587 | "line": 14,
|
57565 | 57588 | "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
|
57566 |
| - "author_association": "collaborator", |
| 57589 | + "author_association": "COLLABORATOR", |
57567 | 57590 | "user": {
|
57568 | 57591 | "login": "octocat",
|
57569 | 57592 | "id": 1,
|
|
60319 | 60342 | "closed_at": null,
|
60320 | 60343 | "created_at": "2011-04-22T13:33:48Z",
|
60321 | 60344 | "updated_at": "2011-04-22T13:33:48Z",
|
60322 |
| - "author_association": "collaborator" |
| 60345 | + "author_association": "COLLABORATOR" |
60323 | 60346 | }
|
60324 | 60347 | ]
|
60325 | 60348 | },
|
|
60479 | 60502 | "type": "User",
|
60480 | 60503 | "site_admin": false
|
60481 | 60504 | },
|
60482 |
| - "author_association": "collaborator" |
| 60505 | + "author_association": "COLLABORATOR" |
60483 | 60506 | }
|
60484 | 60507 | },
|
60485 | 60508 | "issue-comment-items": {
|
|
60513 | 60536 | "created_at": "2011-04-14T16:00:49Z",
|
60514 | 60537 | "updated_at": "2011-04-14T16:00:49Z",
|
60515 | 60538 | "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
|
60516 |
| - "author_association": "collaborator" |
| 60539 | + "author_association": "COLLABORATOR" |
60517 | 60540 | }
|
60518 | 60541 | ]
|
60519 | 60542 | },
|
|
60547 | 60570 | "created_at": "2011-04-14T16:00:49Z",
|
60548 | 60571 | "updated_at": "2011-04-14T16:00:49Z",
|
60549 | 60572 | "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347",
|
60550 |
| - "author_association": "collaborator" |
| 60573 | + "author_association": "COLLABORATOR" |
60551 | 60574 | }
|
60552 | 60575 | },
|
60553 | 60576 | "issue-event-items": {
|
|
60715 | 60738 | "closed_at": null,
|
60716 | 60739 | "created_at": "2011-04-22T13:33:48Z",
|
60717 | 60740 | "updated_at": "2011-04-22T13:33:48Z",
|
60718 |
| - "author_association": "collaborator" |
| 60741 | + "author_association": "COLLABORATOR" |
60719 | 60742 | }
|
60720 | 60743 | }
|
60721 | 60744 | ]
|
|
60884 | 60907 | "closed_at": null,
|
60885 | 60908 | "created_at": "2011-04-22T13:33:48Z",
|
60886 | 60909 | "updated_at": "2011-04-22T13:33:48Z",
|
60887 |
| - "author_association": "collaborator" |
| 60910 | + "author_association": "COLLABORATOR" |
60888 | 60911 | }
|
60889 | 60912 | }
|
60890 | 60913 | },
|
|
61064 | 61087 | "closed_at": null,
|
61065 | 61088 | "created_at": "2011-04-22T13:33:48Z",
|
61066 | 61089 | "updated_at": "2011-04-22T13:33:48Z",
|
61067 |
| - "author_association": "collaborator" |
| 61090 | + "author_association": "COLLABORATOR" |
61068 | 61091 | }
|
61069 | 61092 | },
|
61070 | 61093 | "issue-event-for-issue-items": {
|
|
62798 | 62821 | },
|
62799 | 62822 | "submitted_at": "2019-11-17T17:43:43Z",
|
62800 | 62823 | "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
|
62801 |
| - "author_association": "collaborator" |
| 62824 | + "author_association": "COLLABORATOR" |
62802 | 62825 | }
|
62803 | 62826 | ]
|
62804 | 62827 | },
|
|
62840 | 62863 | },
|
62841 | 62864 | "submitted_at": "2019-11-17T17:43:43Z",
|
62842 | 62865 | "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
|
62843 |
| - "author_association": "collaborator" |
| 62866 | + "author_association": "COLLABORATOR" |
62844 | 62867 | }
|
62845 | 62868 | },
|
62846 | 62869 | "pull-request-review-4": {
|
|
62881 | 62904 | },
|
62882 | 62905 | "submitted_at": "2019-11-17T17:43:43Z",
|
62883 | 62906 | "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
|
62884 |
| - "author_association": "collaborator" |
| 62907 | + "author_association": "COLLABORATOR" |
62885 | 62908 | }
|
62886 | 62909 | },
|
62887 | 62910 | "pull-request-review-5": {
|
|
62922 | 62945 | },
|
62923 | 62946 | "submitted_at": "2019-11-17T17:43:43Z",
|
62924 | 62947 | "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
|
62925 |
| - "author_association": "collaborator" |
| 62948 | + "author_association": "COLLABORATOR" |
62926 | 62949 | }
|
62927 | 62950 | },
|
62928 | 62951 | "review-comment-items": {
|
|
63017 | 63040 | },
|
63018 | 63041 | "submitted_at": "2019-11-17T17:43:43Z",
|
63019 | 63042 | "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091",
|
63020 |
| - "author_association": "collaborator" |
| 63043 | + "author_association": "COLLABORATOR" |
63021 | 63044 | }
|
63022 | 63045 | },
|
63023 | 63046 | "content-file": {
|
|
64655 | 64678 | "body": "...",
|
64656 | 64679 | "score": 1,
|
64657 | 64680 | "locked": true,
|
64658 |
| - "author_association": "collaborator" |
| 64681 | + "author_association": "COLLABORATOR" |
64659 | 64682 | }
|
64660 | 64683 | ]
|
64661 | 64684 | }
|
|
0 commit comments