@octokit/openapi 7.3.0 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/generated/api.github.com.deref.json +9963 -140
  2. package/generated/api.github.com.json +1055 -110
  3. package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
  4. package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
  5. package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +133 -25
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +127 -14
  7. package/generated/ghes-3.2.deref.json +458 -242
  8. package/generated/ghes-3.2.json +694 -35
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +0 -16
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +187 -223
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +432 -10
  12. package/generated/ghes-3.3.deref.json +458 -244
  13. package/generated/ghes-3.3.json +694 -36
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +9 -1
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +9 -1
  16. package/generated/ghes-3.4.deref.json +462 -230
  17. package/generated/ghes-3.4.json +703 -38
  18. package/generated/ghes-3.5-anicca-diff-to-ghes-3.6.deref.json +1548 -135
  19. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  20. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +48182 -31728
  22. package/generated/ghes-3.5-diff-to-ghes-3.6.json +9496 -4686
  23. package/generated/ghes-3.5.deref.json +556 -242
  24. package/generated/ghes-3.5.json +797 -50
  25. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +433 -88
  26. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +17473 -6079
  27. package/generated/ghes-3.6-diff-to-api.github.com.json +4604 -2146
  28. package/generated/ghes-3.6.deref.json +8136 -240
  29. package/generated/ghes-3.6.json +1109 -133
  30. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +1018 -34
  31. package/generated/github.ae-diff-to-api.github.com.deref.json +24735 -16611
  32. package/generated/github.ae-diff-to-api.github.com.json +1390 -126
  33. package/generated/github.ae.deref.json +1214 -163
  34. package/generated/github.ae.json +821 -44
  35. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.3.0",
4
+ "version": "7.6.0",
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": {
@@ -13812,6 +13812,40 @@
13812
13812
  "type": "boolean",
13813
13813
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
13814
13814
  "default": false
13815
+ },
13816
+ "squash_merge_commit_title": {
13817
+ "type": "string",
13818
+ "enum": [
13819
+ "PR_TITLE",
13820
+ "COMMIT_OR_PR_TITLE"
13821
+ ],
13822
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
13823
+ },
13824
+ "squash_merge_commit_message": {
13825
+ "type": "string",
13826
+ "enum": [
13827
+ "PR_BODY",
13828
+ "COMMIT_MESSAGES",
13829
+ "BLANK"
13830
+ ],
13831
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
13832
+ },
13833
+ "merge_commit_title": {
13834
+ "type": "string",
13835
+ "enum": [
13836
+ "PR_TITLE",
13837
+ "MERGE_MESSAGE"
13838
+ ],
13839
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
13840
+ },
13841
+ "merge_commit_message": {
13842
+ "type": "string",
13843
+ "enum": [
13844
+ "PR_BODY",
13845
+ "PR_TITLE",
13846
+ "BLANK"
13847
+ ],
13848
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
13815
13849
  }
13816
13850
  },
13817
13851
  "required": [
@@ -17993,6 +18027,40 @@
17993
18027
  "description": "Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message.",
17994
18028
  "default": false
17995
18029
  },
18030
+ "squash_merge_commit_title": {
18031
+ "type": "string",
18032
+ "enum": [
18033
+ "PR_TITLE",
18034
+ "COMMIT_OR_PR_TITLE"
18035
+ ],
18036
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
18037
+ },
18038
+ "squash_merge_commit_message": {
18039
+ "type": "string",
18040
+ "enum": [
18041
+ "PR_BODY",
18042
+ "COMMIT_MESSAGES",
18043
+ "BLANK"
18044
+ ],
18045
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
18046
+ },
18047
+ "merge_commit_title": {
18048
+ "type": "string",
18049
+ "enum": [
18050
+ "PR_TITLE",
18051
+ "MERGE_MESSAGE"
18052
+ ],
18053
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
18054
+ },
18055
+ "merge_commit_message": {
18056
+ "type": "string",
18057
+ "enum": [
18058
+ "PR_BODY",
18059
+ "PR_TITLE",
18060
+ "BLANK"
18061
+ ],
18062
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
18063
+ },
17996
18064
  "archived": {
17997
18065
  "type": "boolean",
17998
18066
  "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.",
@@ -19266,9 +19334,12 @@
19266
19334
  "content": {
19267
19335
  "application/json": {
19268
19336
  "schema": {
19269
- "type": "object",
19270
- "properties": {},
19271
- "additionalProperties": false
19337
+ "$ref": "#/components/schemas/empty-object"
19338
+ },
19339
+ "examples": {
19340
+ "default": {
19341
+ "value": null
19342
+ }
19272
19343
  }
19273
19344
  }
19274
19345
  }
@@ -19573,6 +19644,17 @@
19573
19644
  "state",
19574
19645
  "comment"
19575
19646
  ]
19647
+ },
19648
+ "examples": {
19649
+ "default": {
19650
+ "value": {
19651
+ "environment_ids": [
19652
+ 161171787
19653
+ ],
19654
+ "state": "approved",
19655
+ "comment": "Ship it!"
19656
+ }
19657
+ }
19576
19658
  }
19577
19659
  }
19578
19660
  }
@@ -19636,6 +19718,11 @@
19636
19718
  "schema": {
19637
19719
  "type": "object",
19638
19720
  "nullable": true
19721
+ },
19722
+ "examples": {
19723
+ "default": {
19724
+ "value": null
19725
+ }
19639
19726
  }
19640
19727
  }
19641
19728
  }
@@ -19646,9 +19733,12 @@
19646
19733
  "content": {
19647
19734
  "application/json": {
19648
19735
  "schema": {
19649
- "type": "object",
19650
- "properties": {},
19651
- "additionalProperties": false
19736
+ "$ref": "#/components/schemas/empty-object"
19737
+ },
19738
+ "examples": {
19739
+ "default": {
19740
+ "value": null
19741
+ }
19652
19742
  }
19653
19743
  }
19654
19744
  }
@@ -19886,9 +19976,12 @@
19886
19976
  "content": {
19887
19977
  "application/json": {
19888
19978
  "schema": {
19889
- "type": "object",
19890
- "properties": {},
19891
- "additionalProperties": false
19979
+ "$ref": "#/components/schemas/empty-object"
19980
+ },
19981
+ "examples": {
19982
+ "default": {
19983
+ "value": null
19984
+ }
19892
19985
  }
19893
19986
  }
19894
19987
  }
@@ -20756,6 +20849,11 @@
20756
20849
  "application/json": {
20757
20850
  "schema": {
20758
20851
  "$ref": "#/components/schemas/branch-with-protection"
20852
+ },
20853
+ "examples": {
20854
+ "default": {
20855
+ "$ref": "#/components/examples/branch-get"
20856
+ }
20759
20857
  }
20760
20858
  }
20761
20859
  }
@@ -21090,6 +21188,11 @@
21090
21188
  "application/json": {
21091
21189
  "schema": {
21092
21190
  "$ref": "#/components/schemas/protected-branch"
21191
+ },
21192
+ "examples": {
21193
+ "default": {
21194
+ "$ref": "#/components/examples/branch-protection-update"
21195
+ }
21093
21196
  }
21094
21197
  }
21095
21198
  }
@@ -21946,7 +22049,7 @@
21946
22049
  "properties": {
21947
22050
  "contexts": {
21948
22051
  "type": "array",
21949
- "description": "contexts parameter",
22052
+ "description": "The name of the status checks",
21950
22053
  "items": {
21951
22054
  "type": "string"
21952
22055
  }
@@ -21962,6 +22065,17 @@
21962
22065
  }
21963
22066
  }
21964
22067
  ]
22068
+ },
22069
+ "examples": {
22070
+ "default": {
22071
+ "summary": "Example adding status checks to a branch protection rule",
22072
+ "value": {
22073
+ "contexts": [
22074
+ "continuous-integration/travis-ci",
22075
+ "continuous-integration/jenkins"
22076
+ ]
22077
+ }
22078
+ }
21965
22079
  }
21966
22080
  }
21967
22081
  }
@@ -22040,7 +22154,7 @@
22040
22154
  "properties": {
22041
22155
  "contexts": {
22042
22156
  "type": "array",
22043
- "description": "contexts parameter",
22157
+ "description": "The name of the status checks",
22044
22158
  "items": {
22045
22159
  "type": "string"
22046
22160
  }
@@ -22056,6 +22170,16 @@
22056
22170
  }
22057
22171
  }
22058
22172
  ]
22173
+ },
22174
+ "examples": {
22175
+ "default": {
22176
+ "summary": "Example updating status checks for a branch protection rule",
22177
+ "value": {
22178
+ "contexts": [
22179
+ "continuous-integration/travis-ci"
22180
+ ]
22181
+ }
22182
+ }
22059
22183
  }
22060
22184
  }
22061
22185
  }
@@ -22129,7 +22253,7 @@
22129
22253
  "properties": {
22130
22254
  "contexts": {
22131
22255
  "type": "array",
22132
- "description": "contexts parameter",
22256
+ "description": "The name of the status checks",
22133
22257
  "items": {
22134
22258
  "type": "string"
22135
22259
  }
@@ -22145,6 +22269,16 @@
22145
22269
  }
22146
22270
  }
22147
22271
  ]
22272
+ },
22273
+ "examples": {
22274
+ "default": {
22275
+ "summary": "Example removing status checks from a branch protection rule",
22276
+ "value": {
22277
+ "contexts": [
22278
+ "continuous-integration/travis-ci"
22279
+ ]
22280
+ }
22281
+ }
22148
22282
  }
22149
22283
  }
22150
22284
  }
@@ -22670,7 +22804,7 @@
22670
22804
  "properties": {
22671
22805
  "teams": {
22672
22806
  "type": "array",
22673
- "description": "teams parameter",
22807
+ "description": "The slug values for teams",
22674
22808
  "items": {
22675
22809
  "type": "string"
22676
22810
  }
@@ -22686,6 +22820,16 @@
22686
22820
  }
22687
22821
  }
22688
22822
  ]
22823
+ },
22824
+ "examples": {
22825
+ "default": {
22826
+ "summary": "Example adding a team in a branch protection rule",
22827
+ "value": {
22828
+ "teams": [
22829
+ "justice-league"
22830
+ ]
22831
+ }
22832
+ }
22689
22833
  }
22690
22834
  }
22691
22835
  }
@@ -22755,7 +22899,7 @@
22755
22899
  "properties": {
22756
22900
  "teams": {
22757
22901
  "type": "array",
22758
- "description": "teams parameter",
22902
+ "description": "The slug values for teams",
22759
22903
  "items": {
22760
22904
  "type": "string"
22761
22905
  }
@@ -22766,11 +22910,21 @@
22766
22910
  ],
22767
22911
  "example": {
22768
22912
  "teams": [
22769
- "my-team"
22913
+ "justice-league"
22770
22914
  ]
22771
22915
  }
22772
22916
  }
22773
22917
  ]
22918
+ },
22919
+ "examples": {
22920
+ "default": {
22921
+ "summary": "Example replacing a team in a branch protection rule",
22922
+ "value": {
22923
+ "teams": [
22924
+ "justice-league"
22925
+ ]
22926
+ }
22927
+ }
22774
22928
  }
22775
22929
  }
22776
22930
  }
@@ -22839,7 +22993,7 @@
22839
22993
  "properties": {
22840
22994
  "teams": {
22841
22995
  "type": "array",
22842
- "description": "teams parameter",
22996
+ "description": "The slug values for teams",
22843
22997
  "items": {
22844
22998
  "type": "string"
22845
22999
  }
@@ -22855,6 +23009,16 @@
22855
23009
  }
22856
23010
  }
22857
23011
  ]
23012
+ },
23013
+ "examples": {
23014
+ "default": {
23015
+ "summary": "Example removing a team in a branch protection rule",
23016
+ "value": {
23017
+ "teams": [
23018
+ "justice-league"
23019
+ ]
23020
+ }
23021
+ }
22858
23022
  }
22859
23023
  }
22860
23024
  }
@@ -22979,7 +23143,7 @@
22979
23143
  "properties": {
22980
23144
  "users": {
22981
23145
  "type": "array",
22982
- "description": "users parameter",
23146
+ "description": "The username for users",
22983
23147
  "items": {
22984
23148
  "type": "string"
22985
23149
  }
@@ -22995,6 +23159,16 @@
22995
23159
  }
22996
23160
  }
22997
23161
  ]
23162
+ },
23163
+ "examples": {
23164
+ "default": {
23165
+ "summary": "Example adding a user in a branch protection rule",
23166
+ "value": {
23167
+ "users": [
23168
+ "octocat"
23169
+ ]
23170
+ }
23171
+ }
22998
23172
  }
22999
23173
  }
23000
23174
  }
@@ -23064,7 +23238,7 @@
23064
23238
  "properties": {
23065
23239
  "users": {
23066
23240
  "type": "array",
23067
- "description": "users parameter",
23241
+ "description": "The username for users",
23068
23242
  "items": {
23069
23243
  "type": "string"
23070
23244
  }
@@ -23080,6 +23254,16 @@
23080
23254
  }
23081
23255
  }
23082
23256
  ]
23257
+ },
23258
+ "examples": {
23259
+ "default": {
23260
+ "summary": "Example replacing a user in a branch protection rule",
23261
+ "value": {
23262
+ "users": [
23263
+ "octocat"
23264
+ ]
23265
+ }
23266
+ }
23083
23267
  }
23084
23268
  }
23085
23269
  }
@@ -23148,7 +23332,7 @@
23148
23332
  "properties": {
23149
23333
  "users": {
23150
23334
  "type": "array",
23151
- "description": "users parameter",
23335
+ "description": "The username for users",
23152
23336
  "items": {
23153
23337
  "type": "string"
23154
23338
  }
@@ -23164,6 +23348,16 @@
23164
23348
  }
23165
23349
  }
23166
23350
  ]
23351
+ },
23352
+ "examples": {
23353
+ "default": {
23354
+ "summary": "Example removing a user in a branch protection rule",
23355
+ "value": {
23356
+ "users": [
23357
+ "octocat"
23358
+ ]
23359
+ }
23360
+ }
23167
23361
  }
23168
23362
  }
23169
23363
  }
@@ -26983,7 +27177,7 @@
26983
27177
  "/repos/{owner}/{repo}/contents/{path}": {
26984
27178
  "get": {
26985
27179
  "summary": "Get repository content",
26986
- "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit\n`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. \n\nFiles and symlinks support [a custom media type](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#custom-media-types) for\nretrieving the raw content or rendered HTML (when supported). All content types support [a custom media\ntype](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent\nobject format.\n\n**Note**:\n* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-server@3.3/rest/reference/git#trees).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees\nAPI](https://docs.github.com/enterprise-server@3.3/rest/reference/git#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\n#### If the content is a directory\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\n_should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major version of the API, the type will be returned as \"submodule\".\n\n#### If the content is a symlink \nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object \ndescribing the symlink itself.\n\n#### If the content is a submodule\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
27180
+ "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit\n`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. \n\nFiles and symlinks support [a custom media type](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#custom-media-types) for\nretrieving the raw content or rendered HTML (when supported). All content types support [a custom media\ntype](https://docs.github.com/enterprise-server@3.3/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent\nobject format.\n\n**Notes**:\n* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/enterprise-server@3.3/rest/reference/git#trees).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees\nAPI](https://docs.github.com/enterprise-server@3.3/rest/reference/git#get-a-tree).\n * Download URLs expire and are meant to be used just once. To ensure the download URL does not expire, please use the contents API to obtain a fresh download URL for each download. \n* This API supports files up to 1 megabyte in size.\n\n#### If the content is a directory\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\n_should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major version of the API, the type will be returned as \"submodule\".\n\n#### If the content is a symlink \nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object \ndescribing the symlink itself.\n\n#### If the content is a submodule\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`) will have null values.",
26987
27181
  "tags": [
26988
27182
  "repos"
26989
27183
  ],
@@ -31022,6 +31216,14 @@
31022
31216
  ]
31023
31217
  }
31024
31218
  }
31219
+ },
31220
+ "examples": {
31221
+ "default": {
31222
+ "summary": "Example request body",
31223
+ "value": {
31224
+ "permissions": "write"
31225
+ }
31226
+ }
31025
31227
  }
31026
31228
  }
31027
31229
  }
@@ -32117,6 +32319,12 @@
32117
32319
  "closed"
32118
32320
  ]
32119
32321
  },
32322
+ "state_reason": {
32323
+ "type": "string",
32324
+ "nullable": true,
32325
+ "description": "The reason for the current state",
32326
+ "example": "not_planned"
32327
+ },
32120
32328
  "milestone": {
32121
32329
  "oneOf": [
32122
32330
  {
@@ -47287,6 +47495,40 @@
47287
47495
  "type": "boolean",
47288
47496
  "example": false
47289
47497
  },
47498
+ "squash_merge_commit_title": {
47499
+ "type": "string",
47500
+ "enum": [
47501
+ "PR_TITLE",
47502
+ "COMMIT_OR_PR_TITLE"
47503
+ ],
47504
+ "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
47505
+ },
47506
+ "squash_merge_commit_message": {
47507
+ "type": "string",
47508
+ "enum": [
47509
+ "PR_BODY",
47510
+ "COMMIT_MESSAGES",
47511
+ "BLANK"
47512
+ ],
47513
+ "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
47514
+ },
47515
+ "merge_commit_title": {
47516
+ "type": "string",
47517
+ "enum": [
47518
+ "PR_TITLE",
47519
+ "MERGE_MESSAGE"
47520
+ ],
47521
+ "description": "The default value for a merge commit title.\n\n- `PR_TITLE` - default to the pull request's title.\n- `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
47522
+ },
47523
+ "merge_commit_message": {
47524
+ "type": "string",
47525
+ "enum": [
47526
+ "PR_BODY",
47527
+ "PR_TITLE",
47528
+ "BLANK"
47529
+ ],
47530
+ "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
47531
+ },
47290
47532
  "has_downloads": {
47291
47533
  "description": "Whether downloads are enabled.",
47292
47534
  "default": true,
@@ -51378,14 +51620,6 @@
51378
51620
  "write"
51379
51621
  ]
51380
51622
  },
51381
- "organization_custom_roles": {
51382
- "type": "string",
51383
- "description": "The level of permission to grant the access token for custom roles management.",
51384
- "enum": [
51385
- "read",
51386
- "write"
51387
- ]
51388
- },
51389
51623
  "deployments": {
51390
51624
  "type": "string",
51391
51625
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -58798,6 +59032,258 @@
58798
59032
  "parent"
58799
59033
  ]
58800
59034
  },
59035
+ "team-organization": {
59036
+ "title": "Team Organization",
59037
+ "description": "Team Organization",
59038
+ "type": "object",
59039
+ "properties": {
59040
+ "login": {
59041
+ "type": "string",
59042
+ "example": "github"
59043
+ },
59044
+ "id": {
59045
+ "type": "integer",
59046
+ "example": 1
59047
+ },
59048
+ "node_id": {
59049
+ "type": "string",
59050
+ "example": "MDEyOk9yZ2FuaXphdGlvbjE="
59051
+ },
59052
+ "url": {
59053
+ "type": "string",
59054
+ "format": "uri",
59055
+ "example": "https://api.github.com/orgs/github"
59056
+ },
59057
+ "repos_url": {
59058
+ "type": "string",
59059
+ "format": "uri",
59060
+ "example": "https://api.github.com/orgs/github/repos"
59061
+ },
59062
+ "events_url": {
59063
+ "type": "string",
59064
+ "format": "uri",
59065
+ "example": "https://api.github.com/orgs/github/events"
59066
+ },
59067
+ "hooks_url": {
59068
+ "type": "string",
59069
+ "example": "https://api.github.com/orgs/github/hooks"
59070
+ },
59071
+ "issues_url": {
59072
+ "type": "string",
59073
+ "example": "https://api.github.com/orgs/github/issues"
59074
+ },
59075
+ "members_url": {
59076
+ "type": "string",
59077
+ "example": "https://api.github.com/orgs/github/members{/member}"
59078
+ },
59079
+ "public_members_url": {
59080
+ "type": "string",
59081
+ "example": "https://api.github.com/orgs/github/public_members{/member}"
59082
+ },
59083
+ "avatar_url": {
59084
+ "type": "string",
59085
+ "example": "https://github.com/images/error/octocat_happy.gif"
59086
+ },
59087
+ "description": {
59088
+ "type": "string",
59089
+ "example": "A great organization",
59090
+ "nullable": true
59091
+ },
59092
+ "name": {
59093
+ "type": "string",
59094
+ "example": "github"
59095
+ },
59096
+ "company": {
59097
+ "type": "string",
59098
+ "example": "GitHub"
59099
+ },
59100
+ "blog": {
59101
+ "type": "string",
59102
+ "format": "uri",
59103
+ "example": "https://github.com/blog"
59104
+ },
59105
+ "location": {
59106
+ "type": "string",
59107
+ "example": "San Francisco"
59108
+ },
59109
+ "email": {
59110
+ "type": "string",
59111
+ "format": "email",
59112
+ "example": "octocat@github.com"
59113
+ },
59114
+ "twitter_username": {
59115
+ "type": "string",
59116
+ "example": "github",
59117
+ "nullable": true
59118
+ },
59119
+ "is_verified": {
59120
+ "type": "boolean",
59121
+ "example": true
59122
+ },
59123
+ "has_organization_projects": {
59124
+ "type": "boolean",
59125
+ "example": true
59126
+ },
59127
+ "has_repository_projects": {
59128
+ "type": "boolean",
59129
+ "example": true
59130
+ },
59131
+ "public_repos": {
59132
+ "type": "integer",
59133
+ "example": 2
59134
+ },
59135
+ "public_gists": {
59136
+ "type": "integer",
59137
+ "example": 1
59138
+ },
59139
+ "followers": {
59140
+ "type": "integer",
59141
+ "example": 20
59142
+ },
59143
+ "following": {
59144
+ "type": "integer",
59145
+ "example": 0
59146
+ },
59147
+ "html_url": {
59148
+ "type": "string",
59149
+ "format": "uri",
59150
+ "example": "https://github.com/octocat"
59151
+ },
59152
+ "created_at": {
59153
+ "type": "string",
59154
+ "format": "date-time",
59155
+ "example": "2008-01-14T04:33:35Z"
59156
+ },
59157
+ "type": {
59158
+ "type": "string",
59159
+ "example": "Organization"
59160
+ },
59161
+ "total_private_repos": {
59162
+ "type": "integer",
59163
+ "example": 100
59164
+ },
59165
+ "owned_private_repos": {
59166
+ "type": "integer",
59167
+ "example": 100
59168
+ },
59169
+ "private_gists": {
59170
+ "type": "integer",
59171
+ "example": 81,
59172
+ "nullable": true
59173
+ },
59174
+ "disk_usage": {
59175
+ "type": "integer",
59176
+ "example": 10000,
59177
+ "nullable": true
59178
+ },
59179
+ "collaborators": {
59180
+ "type": "integer",
59181
+ "example": 8,
59182
+ "nullable": true
59183
+ },
59184
+ "billing_email": {
59185
+ "type": "string",
59186
+ "format": "email",
59187
+ "example": "org@example.com",
59188
+ "nullable": true
59189
+ },
59190
+ "plan": {
59191
+ "type": "object",
59192
+ "properties": {
59193
+ "name": {
59194
+ "type": "string"
59195
+ },
59196
+ "space": {
59197
+ "type": "integer"
59198
+ },
59199
+ "private_repos": {
59200
+ "type": "integer"
59201
+ },
59202
+ "filled_seats": {
59203
+ "type": "integer"
59204
+ },
59205
+ "seats": {
59206
+ "type": "integer"
59207
+ }
59208
+ },
59209
+ "required": [
59210
+ "name",
59211
+ "space",
59212
+ "private_repos"
59213
+ ]
59214
+ },
59215
+ "default_repository_permission": {
59216
+ "type": "string",
59217
+ "nullable": true
59218
+ },
59219
+ "members_can_create_repositories": {
59220
+ "type": "boolean",
59221
+ "example": true,
59222
+ "nullable": true
59223
+ },
59224
+ "two_factor_requirement_enabled": {
59225
+ "type": "boolean",
59226
+ "example": true,
59227
+ "nullable": true
59228
+ },
59229
+ "members_allowed_repository_creation_type": {
59230
+ "type": "string",
59231
+ "example": "all"
59232
+ },
59233
+ "members_can_create_public_repositories": {
59234
+ "type": "boolean",
59235
+ "example": true
59236
+ },
59237
+ "members_can_create_private_repositories": {
59238
+ "type": "boolean",
59239
+ "example": true
59240
+ },
59241
+ "members_can_create_internal_repositories": {
59242
+ "type": "boolean",
59243
+ "example": true
59244
+ },
59245
+ "members_can_create_pages": {
59246
+ "type": "boolean",
59247
+ "example": true
59248
+ },
59249
+ "members_can_create_public_pages": {
59250
+ "type": "boolean",
59251
+ "example": true
59252
+ },
59253
+ "members_can_create_private_pages": {
59254
+ "type": "boolean",
59255
+ "example": true
59256
+ },
59257
+ "updated_at": {
59258
+ "type": "string",
59259
+ "format": "date-time"
59260
+ }
59261
+ },
59262
+ "required": [
59263
+ "login",
59264
+ "url",
59265
+ "id",
59266
+ "node_id",
59267
+ "repos_url",
59268
+ "events_url",
59269
+ "hooks_url",
59270
+ "issues_url",
59271
+ "members_url",
59272
+ "public_members_url",
59273
+ "avatar_url",
59274
+ "description",
59275
+ "html_url",
59276
+ "has_organization_projects",
59277
+ "has_repository_projects",
59278
+ "public_repos",
59279
+ "public_gists",
59280
+ "followers",
59281
+ "following",
59282
+ "type",
59283
+ "created_at",
59284
+ "updated_at"
59285
+ ]
59286
+ },
58801
59287
  "team-full": {
58802
59288
  "title": "Full Team",
58803
59289
  "description": "Groups of organization members that gives permissions on specified repositories.",
@@ -58882,7 +59368,7 @@
58882
59368
  "example": "2017-08-17T12:37:15Z"
58883
59369
  },
58884
59370
  "organization": {
58885
- "$ref": "#/components/schemas/organization-full"
59371
+ "$ref": "#/components/schemas/team-organization"
58886
59372
  },
58887
59373
  "ldap_dn": {
58888
59374
  "description": "Distinguished Name (DN) that team maps to within LDAP environment",
@@ -81761,7 +82247,6 @@
81761
82247
  "node_id": "MDc6TGljZW5zZW1pdA==",
81762
82248
  "html_url": "https://github.com/licenses/mit"
81763
82249
  },
81764
- "language": null,
81765
82250
  "forks_count": 9,
81766
82251
  "forks": 9,
81767
82252
  "stargazers_count": 80,
@@ -83071,6 +83556,109 @@
83071
83556
  }
83072
83557
  ]
83073
83558
  },
83559
+ "branch-get": {
83560
+ "value": {
83561
+ "name": "main",
83562
+ "commit": {
83563
+ "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
83564
+ "node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
83565
+ "commit": {
83566
+ "author": {
83567
+ "name": "The Octocat",
83568
+ "email": "octocat@nowhere.com",
83569
+ "date": "2012-03-06T23:06:50Z"
83570
+ },
83571
+ "committer": {
83572
+ "name": "The Octocat",
83573
+ "email": "octocat@nowhere.com",
83574
+ "date": "2012-03-06T23:06:50Z"
83575
+ },
83576
+ "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
83577
+ "tree": {
83578
+ "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
83579
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
83580
+ },
83581
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
83582
+ "comment_count": 77,
83583
+ "verification": {
83584
+ "verified": false,
83585
+ "reason": "unsigned",
83586
+ "signature": null,
83587
+ "payload": null
83588
+ }
83589
+ },
83590
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
83591
+ "html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
83592
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
83593
+ "author": {
83594
+ "login": "octocat",
83595
+ "id": 583231,
83596
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
83597
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
83598
+ "gravatar_id": "",
83599
+ "url": "https://api.github.com/users/octocat",
83600
+ "html_url": "https://github.com/octocat",
83601
+ "followers_url": "https://api.github.com/users/octocat/followers",
83602
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
83603
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
83604
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
83605
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
83606
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
83607
+ "repos_url": "https://api.github.com/users/octocat/repos",
83608
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
83609
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
83610
+ "type": "User",
83611
+ "site_admin": false
83612
+ },
83613
+ "committer": {
83614
+ "login": "octocat",
83615
+ "id": 583231,
83616
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
83617
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
83618
+ "gravatar_id": "",
83619
+ "url": "https://api.github.com/users/octocat",
83620
+ "html_url": "https://github.com/octocat",
83621
+ "followers_url": "https://api.github.com/users/octocat/followers",
83622
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
83623
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
83624
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
83625
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
83626
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
83627
+ "repos_url": "https://api.github.com/users/octocat/repos",
83628
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
83629
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
83630
+ "type": "User",
83631
+ "site_admin": false
83632
+ },
83633
+ "parents": [
83634
+ {
83635
+ "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
83636
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
83637
+ "html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
83638
+ },
83639
+ {
83640
+ "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
83641
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
83642
+ "html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
83643
+ }
83644
+ ]
83645
+ },
83646
+ "_links": {
83647
+ "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
83648
+ "html": "https://github.com/octocat/Hello-World/tree/main"
83649
+ },
83650
+ "protected": false,
83651
+ "protection": {
83652
+ "enabled": false,
83653
+ "required_status_checks": {
83654
+ "enforcement_level": "off",
83655
+ "contexts": [],
83656
+ "checks": []
83657
+ }
83658
+ },
83659
+ "protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
83660
+ }
83661
+ },
83074
83662
  "branch-protection": {
83075
83663
  "value": {
83076
83664
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection",
@@ -83267,6 +83855,71 @@
83267
83855
  }
83268
83856
  }
83269
83857
  },
83858
+ "branch-protection-update": {
83859
+ "value": {
83860
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
83861
+ "required_status_checks": {
83862
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
83863
+ "strict": true,
83864
+ "contexts": [
83865
+ "continuous-integration/travis-ci"
83866
+ ],
83867
+ "contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
83868
+ "checks": [
83869
+ {
83870
+ "context": "continuous-integration/travis-ci",
83871
+ "app_id": null
83872
+ }
83873
+ ]
83874
+ },
83875
+ "restrictions": {
83876
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
83877
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
83878
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
83879
+ "apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
83880
+ "users": [],
83881
+ "teams": [],
83882
+ "apps": []
83883
+ },
83884
+ "required_pull_request_reviews": {
83885
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
83886
+ "dismiss_stale_reviews": true,
83887
+ "require_code_owner_reviews": true,
83888
+ "required_approving_review_count": 2,
83889
+ "dismissal_restrictions": {
83890
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
83891
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
83892
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
83893
+ "users": [],
83894
+ "teams": [],
83895
+ "apps": []
83896
+ }
83897
+ },
83898
+ "required_signatures": {
83899
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
83900
+ "enabled": false
83901
+ },
83902
+ "enforce_admins": {
83903
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
83904
+ "enabled": true
83905
+ },
83906
+ "required_linear_history": {
83907
+ "enabled": true
83908
+ },
83909
+ "allow_force_pushes": {
83910
+ "enabled": true
83911
+ },
83912
+ "allow_deletions": {
83913
+ "enabled": true
83914
+ },
83915
+ "block_creations": {
83916
+ "enabled": true
83917
+ },
83918
+ "required_conversation_resolution": {
83919
+ "enabled": true
83920
+ }
83921
+ }
83922
+ },
83270
83923
  "protected-branch-admin-enforced-2": {
83271
83924
  "value": {
83272
83925
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins",
@@ -88033,7 +88686,8 @@
88033
88686
  "type": "User",
88034
88687
  "site_admin": false
88035
88688
  },
88036
- "author_association": "COLLABORATOR"
88689
+ "author_association": "COLLABORATOR",
88690
+ "state_reason": "completed"
88037
88691
  }
88038
88692
  ]
88039
88693
  },
@@ -88193,7 +88847,8 @@
88193
88847
  "type": "User",
88194
88848
  "site_admin": false
88195
88849
  },
88196
- "author_association": "COLLABORATOR"
88850
+ "author_association": "COLLABORATOR",
88851
+ "state_reason": "completed"
88197
88852
  }
88198
88853
  },
88199
88854
  "issue-comment-items": {
@@ -88429,7 +89084,8 @@
88429
89084
  "closed_at": null,
88430
89085
  "created_at": "2011-04-22T13:33:48Z",
88431
89086
  "updated_at": "2011-04-22T13:33:48Z",
88432
- "author_association": "COLLABORATOR"
89087
+ "author_association": "COLLABORATOR",
89088
+ "state_reason": "completed"
88433
89089
  }
88434
89090
  }
88435
89091
  ]
@@ -88638,7 +89294,8 @@
88638
89294
  "closed_at": null,
88639
89295
  "created_at": "2011-04-22T13:33:48Z",
88640
89296
  "updated_at": "2011-04-22T13:33:48Z",
88641
- "author_association": "COLLABORATOR"
89297
+ "author_association": "COLLABORATOR",
89298
+ "state_reason": "completed"
88642
89299
  }
88643
89300
  }
88644
89301
  },
@@ -92862,7 +93519,8 @@
92862
93519
  "body": "...",
92863
93520
  "score": 1,
92864
93521
  "locked": true,
92865
- "author_association": "COLLABORATOR"
93522
+ "author_association": "COLLABORATOR",
93523
+ "state_reason": "completed"
92866
93524
  }
92867
93525
  ]
92868
93526
  }