@octokit/openapi 7.5.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 (34) hide show
  1. package/generated/api.github.com.deref.json +466 -140
  2. package/generated/api.github.com.json +607 -28
  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 +31 -25
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +25 -14
  7. package/generated/ghes-3.2.deref.json +319 -242
  8. package/generated/ghes-3.2.json +558 -26
  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 +319 -242
  13. package/generated/ghes-3.3.json +558 -26
  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 +322 -228
  17. package/generated/ghes-3.4.json +566 -28
  18. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  19. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  20. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +45 -39
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.json +283 -15
  22. package/generated/ghes-3.5.deref.json +322 -228
  23. package/generated/ghes-3.5.json +566 -28
  24. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +433 -88
  25. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +17464 -6423
  26. package/generated/ghes-3.6-diff-to-api.github.com.json +4502 -2247
  27. package/generated/ghes-3.6.deref.json +406 -240
  28. package/generated/ghes-3.6.json +654 -40
  29. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +318 -32
  30. package/generated/github.ae-diff-to-api.github.com.deref.json +15845 -8423
  31. package/generated/github.ae-diff-to-api.github.com.json +1168 -44
  32. package/generated/github.ae.deref.json +409 -163
  33. package/generated/github.ae.json +646 -35
  34. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.5.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": {
@@ -2487,14 +2487,6 @@
2487
2487
  "write"
2488
2488
  ]
2489
2489
  },
2490
- "organization_custom_roles": {
2491
- "type": "string",
2492
- "description": "The level of permission to grant the access token for custom roles management.",
2493
- "enum": [
2494
- "read",
2495
- "write"
2496
- ]
2497
- },
2498
2490
  "deployments": {
2499
2491
  "type": "string",
2500
2492
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -2639,6 +2631,14 @@
2639
2631
  "write"
2640
2632
  ]
2641
2633
  },
2634
+ "organization_custom_roles": {
2635
+ "type": "string",
2636
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
2637
+ "enum": [
2638
+ "read",
2639
+ "write"
2640
+ ]
2641
+ },
2642
2642
  "organization_hooks": {
2643
2643
  "type": "string",
2644
2644
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -3284,14 +3284,6 @@
3284
3284
  "write"
3285
3285
  ]
3286
3286
  },
3287
- "organization_custom_roles": {
3288
- "type": "string",
3289
- "description": "The level of permission to grant the access token for custom roles management.",
3290
- "enum": [
3291
- "read",
3292
- "write"
3293
- ]
3294
- },
3295
3287
  "deployments": {
3296
3288
  "type": "string",
3297
3289
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -3436,6 +3428,14 @@
3436
3428
  "write"
3437
3429
  ]
3438
3430
  },
3431
+ "organization_custom_roles": {
3432
+ "type": "string",
3433
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
3434
+ "enum": [
3435
+ "read",
3436
+ "write"
3437
+ ]
3438
+ },
3439
3439
  "organization_hooks": {
3440
3440
  "type": "string",
3441
3441
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -3945,14 +3945,6 @@
3945
3945
  "write"
3946
3946
  ]
3947
3947
  },
3948
- "organization_custom_roles": {
3949
- "type": "string",
3950
- "description": "The level of permission to grant the access token for custom roles management.",
3951
- "enum": [
3952
- "read",
3953
- "write"
3954
- ]
3955
- },
3956
3948
  "deployments": {
3957
3949
  "type": "string",
3958
3950
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -4097,6 +4089,14 @@
4097
4089
  "write"
4098
4090
  ]
4099
4091
  },
4092
+ "organization_custom_roles": {
4093
+ "type": "string",
4094
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
4095
+ "enum": [
4096
+ "read",
4097
+ "write"
4098
+ ]
4099
+ },
4100
4100
  "organization_hooks": {
4101
4101
  "type": "string",
4102
4102
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -4238,14 +4238,6 @@
4238
4238
  "write"
4239
4239
  ]
4240
4240
  },
4241
- "organization_custom_roles": {
4242
- "type": "string",
4243
- "description": "The level of permission to grant the access token for custom roles management.",
4244
- "enum": [
4245
- "read",
4246
- "write"
4247
- ]
4248
- },
4249
4241
  "deployments": {
4250
4242
  "type": "string",
4251
4243
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -4390,6 +4382,14 @@
4390
4382
  "write"
4391
4383
  ]
4392
4384
  },
4385
+ "organization_custom_roles": {
4386
+ "type": "string",
4387
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
4388
+ "enum": [
4389
+ "read",
4390
+ "write"
4391
+ ]
4392
+ },
4393
4393
  "organization_hooks": {
4394
4394
  "type": "string",
4395
4395
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -6546,14 +6546,6 @@
6546
6546
  "write"
6547
6547
  ]
6548
6548
  },
6549
- "organization_custom_roles": {
6550
- "type": "string",
6551
- "description": "The level of permission to grant the access token for custom roles management.",
6552
- "enum": [
6553
- "read",
6554
- "write"
6555
- ]
6556
- },
6557
6549
  "deployments": {
6558
6550
  "type": "string",
6559
6551
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -6698,6 +6690,14 @@
6698
6690
  "write"
6699
6691
  ]
6700
6692
  },
6693
+ "organization_custom_roles": {
6694
+ "type": "string",
6695
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
6696
+ "enum": [
6697
+ "read",
6698
+ "write"
6699
+ ]
6700
+ },
6701
6701
  "organization_hooks": {
6702
6702
  "type": "string",
6703
6703
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -7397,14 +7397,6 @@
7397
7397
  "write"
7398
7398
  ]
7399
7399
  },
7400
- "organization_custom_roles": {
7401
- "type": "string",
7402
- "description": "The level of permission to grant the access token for custom roles management.",
7403
- "enum": [
7404
- "read",
7405
- "write"
7406
- ]
7407
- },
7408
7400
  "deployments": {
7409
7401
  "type": "string",
7410
7402
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -7549,6 +7541,14 @@
7549
7541
  "write"
7550
7542
  ]
7551
7543
  },
7544
+ "organization_custom_roles": {
7545
+ "type": "string",
7546
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
7547
+ "enum": [
7548
+ "read",
7549
+ "write"
7550
+ ]
7551
+ },
7552
7552
  "organization_hooks": {
7553
7553
  "type": "string",
7554
7554
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -8172,14 +8172,6 @@
8172
8172
  "write"
8173
8173
  ]
8174
8174
  },
8175
- "organization_custom_roles": {
8176
- "type": "string",
8177
- "description": "The level of permission to grant the access token for custom roles management.",
8178
- "enum": [
8179
- "read",
8180
- "write"
8181
- ]
8182
- },
8183
8175
  "deployments": {
8184
8176
  "type": "string",
8185
8177
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -8324,6 +8316,14 @@
8324
8316
  "write"
8325
8317
  ]
8326
8318
  },
8319
+ "organization_custom_roles": {
8320
+ "type": "string",
8321
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
8322
+ "enum": [
8323
+ "read",
8324
+ "write"
8325
+ ]
8326
+ },
8327
8327
  "organization_hooks": {
8328
8328
  "type": "string",
8329
8329
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -8655,14 +8655,6 @@
8655
8655
  "write"
8656
8656
  ]
8657
8657
  },
8658
- "organization_custom_roles": {
8659
- "type": "string",
8660
- "description": "The level of permission to grant the access token for custom roles management.",
8661
- "enum": [
8662
- "read",
8663
- "write"
8664
- ]
8665
- },
8666
8658
  "deployments": {
8667
8659
  "type": "string",
8668
8660
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -8807,6 +8799,14 @@
8807
8799
  "write"
8808
8800
  ]
8809
8801
  },
8802
+ "organization_custom_roles": {
8803
+ "type": "string",
8804
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
8805
+ "enum": [
8806
+ "read",
8807
+ "write"
8808
+ ]
8809
+ },
8810
8810
  "organization_hooks": {
8811
8811
  "type": "string",
8812
8812
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -51205,7 +51205,7 @@
51205
51205
  "/organizations/{organization_id}/custom_roles": {
51206
51206
  "get": {
51207
51207
  "summary": "List custom repository roles in an organization",
51208
- "description": "List the custom repository roles available in this organization. In order to see custom\nrepository roles in an organization, the authenticated user must be an organization owner.\n\nFor more information on custom repository roles, see \"[Managing custom repository roles for an organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
51208
+ "description": "List the custom repository roles available in this organization. In order to see custom\nrepository roles in an organization, the authenticated user must be an organization owner.\n\nTo use this endpoint the authenticated user must be an administrator for the organization or of an repository of the organizaiton and must use an access token with `admin:org repo` scope.\nGitHub Apps must have the `organization_custom_roles:read` organization permission to use this endpoint.\n\nFor more information on custom repository roles, see \"[Managing custom repository roles for an organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization)\".",
51209
51209
  "tags": [
51210
51210
  "orgs"
51211
51211
  ],
@@ -78923,14 +78923,6 @@
78923
78923
  "write"
78924
78924
  ]
78925
78925
  },
78926
- "organization_custom_roles": {
78927
- "type": "string",
78928
- "description": "The level of permission to grant the access token for custom roles management.",
78929
- "enum": [
78930
- "read",
78931
- "write"
78932
- ]
78933
- },
78934
78926
  "deployments": {
78935
78927
  "type": "string",
78936
78928
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -79075,6 +79067,14 @@
79075
79067
  "write"
79076
79068
  ]
79077
79069
  },
79070
+ "organization_custom_roles": {
79071
+ "type": "string",
79072
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
79073
+ "enum": [
79074
+ "read",
79075
+ "write"
79076
+ ]
79077
+ },
79078
79078
  "organization_hooks": {
79079
79079
  "type": "string",
79080
79080
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -79734,14 +79734,6 @@
79734
79734
  "write"
79735
79735
  ]
79736
79736
  },
79737
- "organization_custom_roles": {
79738
- "type": "string",
79739
- "description": "The level of permission to grant the access token for custom roles management.",
79740
- "enum": [
79741
- "read",
79742
- "write"
79743
- ]
79744
- },
79745
79737
  "deployments": {
79746
79738
  "type": "string",
79747
79739
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -79886,6 +79878,14 @@
79886
79878
  "write"
79887
79879
  ]
79888
79880
  },
79881
+ "organization_custom_roles": {
79882
+ "type": "string",
79883
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
79884
+ "enum": [
79885
+ "read",
79886
+ "write"
79887
+ ]
79888
+ },
79889
79889
  "organization_hooks": {
79890
79890
  "type": "string",
79891
79891
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -109052,8 +109052,8 @@
109052
109052
  "example": "2017-08-17T12:37:15Z"
109053
109053
  },
109054
109054
  "organization": {
109055
- "title": "Organization Full",
109056
- "description": "Organization Full",
109055
+ "title": "Team Organization",
109056
+ "description": "Team Organization",
109057
109057
  "type": "object",
109058
109058
  "properties": {
109059
109059
  "login": {
@@ -109693,8 +109693,8 @@
109693
109693
  "example": "2017-08-17T12:37:15Z"
109694
109694
  },
109695
109695
  "organization": {
109696
- "title": "Organization Full",
109697
- "description": "Organization Full",
109696
+ "title": "Team Organization",
109697
+ "description": "Team Organization",
109698
109698
  "type": "object",
109699
109699
  "properties": {
109700
109700
  "login": {
@@ -110315,8 +110315,8 @@
110315
110315
  "example": "2017-08-17T12:37:15Z"
110316
110316
  },
110317
110317
  "organization": {
110318
- "title": "Organization Full",
110319
- "description": "Organization Full",
110318
+ "title": "Team Organization",
110319
+ "description": "Team Organization",
110320
110320
  "type": "object",
110321
110321
  "properties": {
110322
110322
  "login": {
@@ -172674,6 +172674,111 @@
172674
172674
  "protected",
172675
172675
  "protection_url"
172676
172676
  ]
172677
+ },
172678
+ "examples": {
172679
+ "default": {
172680
+ "value": {
172681
+ "name": "main",
172682
+ "commit": {
172683
+ "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
172684
+ "node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
172685
+ "commit": {
172686
+ "author": {
172687
+ "name": "The Octocat",
172688
+ "email": "octocat@nowhere.com",
172689
+ "date": "2012-03-06T23:06:50Z"
172690
+ },
172691
+ "committer": {
172692
+ "name": "The Octocat",
172693
+ "email": "octocat@nowhere.com",
172694
+ "date": "2012-03-06T23:06:50Z"
172695
+ },
172696
+ "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
172697
+ "tree": {
172698
+ "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
172699
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
172700
+ },
172701
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
172702
+ "comment_count": 77,
172703
+ "verification": {
172704
+ "verified": false,
172705
+ "reason": "unsigned",
172706
+ "signature": null,
172707
+ "payload": null
172708
+ }
172709
+ },
172710
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
172711
+ "html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
172712
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
172713
+ "author": {
172714
+ "login": "octocat",
172715
+ "id": 583231,
172716
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
172717
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
172718
+ "gravatar_id": "",
172719
+ "url": "https://api.github.com/users/octocat",
172720
+ "html_url": "https://github.com/octocat",
172721
+ "followers_url": "https://api.github.com/users/octocat/followers",
172722
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
172723
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
172724
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
172725
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
172726
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
172727
+ "repos_url": "https://api.github.com/users/octocat/repos",
172728
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
172729
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
172730
+ "type": "User",
172731
+ "site_admin": false
172732
+ },
172733
+ "committer": {
172734
+ "login": "octocat",
172735
+ "id": 583231,
172736
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
172737
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
172738
+ "gravatar_id": "",
172739
+ "url": "https://api.github.com/users/octocat",
172740
+ "html_url": "https://github.com/octocat",
172741
+ "followers_url": "https://api.github.com/users/octocat/followers",
172742
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
172743
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
172744
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
172745
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
172746
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
172747
+ "repos_url": "https://api.github.com/users/octocat/repos",
172748
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
172749
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
172750
+ "type": "User",
172751
+ "site_admin": false
172752
+ },
172753
+ "parents": [
172754
+ {
172755
+ "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
172756
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
172757
+ "html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
172758
+ },
172759
+ {
172760
+ "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
172761
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
172762
+ "html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
172763
+ }
172764
+ ]
172765
+ },
172766
+ "_links": {
172767
+ "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
172768
+ "html": "https://github.com/octocat/Hello-World/tree/main"
172769
+ },
172770
+ "protected": false,
172771
+ "protection": {
172772
+ "enabled": false,
172773
+ "required_status_checks": {
172774
+ "enforcement_level": "off",
172775
+ "contexts": [],
172776
+ "checks": []
172777
+ }
172778
+ },
172779
+ "protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
172780
+ }
172781
+ }
172677
172782
  }
172678
172783
  }
172679
172784
  }
@@ -176447,6 +176552,73 @@
176447
176552
  "required": [
176448
176553
  "url"
176449
176554
  ]
176555
+ },
176556
+ "examples": {
176557
+ "default": {
176558
+ "value": {
176559
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
176560
+ "required_status_checks": {
176561
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
176562
+ "strict": true,
176563
+ "contexts": [
176564
+ "continuous-integration/travis-ci"
176565
+ ],
176566
+ "contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
176567
+ "checks": [
176568
+ {
176569
+ "context": "continuous-integration/travis-ci",
176570
+ "app_id": null
176571
+ }
176572
+ ]
176573
+ },
176574
+ "restrictions": {
176575
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
176576
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
176577
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
176578
+ "apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
176579
+ "users": [],
176580
+ "teams": [],
176581
+ "apps": []
176582
+ },
176583
+ "required_pull_request_reviews": {
176584
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
176585
+ "dismiss_stale_reviews": true,
176586
+ "require_code_owner_reviews": true,
176587
+ "required_approving_review_count": 2,
176588
+ "dismissal_restrictions": {
176589
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
176590
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
176591
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
176592
+ "users": [],
176593
+ "teams": [],
176594
+ "apps": []
176595
+ }
176596
+ },
176597
+ "required_signatures": {
176598
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
176599
+ "enabled": false
176600
+ },
176601
+ "enforce_admins": {
176602
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
176603
+ "enabled": true
176604
+ },
176605
+ "required_linear_history": {
176606
+ "enabled": true
176607
+ },
176608
+ "allow_force_pushes": {
176609
+ "enabled": true
176610
+ },
176611
+ "allow_deletions": {
176612
+ "enabled": true
176613
+ },
176614
+ "block_creations": {
176615
+ "enabled": true
176616
+ },
176617
+ "required_conversation_resolution": {
176618
+ "enabled": true
176619
+ }
176620
+ }
176621
+ }
176450
176622
  }
176451
176623
  }
176452
176624
  }
@@ -180650,7 +180822,7 @@
180650
180822
  "properties": {
180651
180823
  "contexts": {
180652
180824
  "type": "array",
180653
- "description": "contexts parameter",
180825
+ "description": "The name of the status checks",
180654
180826
  "items": {
180655
180827
  "type": "string"
180656
180828
  }
@@ -180666,6 +180838,17 @@
180666
180838
  }
180667
180839
  }
180668
180840
  ]
180841
+ },
180842
+ "examples": {
180843
+ "default": {
180844
+ "summary": "Example adding status checks to a branch protection rule",
180845
+ "value": {
180846
+ "contexts": [
180847
+ "continuous-integration/travis-ci",
180848
+ "continuous-integration/jenkins"
180849
+ ]
180850
+ }
180851
+ }
180669
180852
  }
180670
180853
  }
180671
180854
  }
@@ -180875,7 +181058,7 @@
180875
181058
  "properties": {
180876
181059
  "contexts": {
180877
181060
  "type": "array",
180878
- "description": "contexts parameter",
181061
+ "description": "The name of the status checks",
180879
181062
  "items": {
180880
181063
  "type": "string"
180881
181064
  }
@@ -180891,6 +181074,16 @@
180891
181074
  }
180892
181075
  }
180893
181076
  ]
181077
+ },
181078
+ "examples": {
181079
+ "default": {
181080
+ "summary": "Example updating status checks for a branch protection rule",
181081
+ "value": {
181082
+ "contexts": [
181083
+ "continuous-integration/travis-ci"
181084
+ ]
181085
+ }
181086
+ }
180894
181087
  }
180895
181088
  }
180896
181089
  }
@@ -181072,7 +181265,7 @@
181072
181265
  "properties": {
181073
181266
  "contexts": {
181074
181267
  "type": "array",
181075
- "description": "contexts parameter",
181268
+ "description": "The name of the status checks",
181076
181269
  "items": {
181077
181270
  "type": "string"
181078
181271
  }
@@ -181088,6 +181281,16 @@
181088
181281
  }
181089
181282
  }
181090
181283
  ]
181284
+ },
181285
+ "examples": {
181286
+ "default": {
181287
+ "summary": "Example removing status checks from a branch protection rule",
181288
+ "value": {
181289
+ "contexts": [
181290
+ "continuous-integration/travis-ci"
181291
+ ]
181292
+ }
181293
+ }
181091
181294
  }
181092
181295
  }
181093
181296
  }
@@ -183793,7 +183996,7 @@
183793
183996
  "properties": {
183794
183997
  "teams": {
183795
183998
  "type": "array",
183796
- "description": "teams parameter",
183999
+ "description": "The slug values for teams",
183797
184000
  "items": {
183798
184001
  "type": "string"
183799
184002
  }
@@ -183809,6 +184012,16 @@
183809
184012
  }
183810
184013
  }
183811
184014
  ]
184015
+ },
184016
+ "examples": {
184017
+ "default": {
184018
+ "summary": "Example adding a team in a branch protection rule",
184019
+ "value": {
184020
+ "teams": [
184021
+ "justice-league"
184022
+ ]
184023
+ }
184024
+ }
183812
184025
  }
183813
184026
  }
183814
184027
  }
@@ -184139,7 +184352,7 @@
184139
184352
  "properties": {
184140
184353
  "teams": {
184141
184354
  "type": "array",
184142
- "description": "teams parameter",
184355
+ "description": "The slug values for teams",
184143
184356
  "items": {
184144
184357
  "type": "string"
184145
184358
  }
@@ -184150,11 +184363,21 @@
184150
184363
  ],
184151
184364
  "example": {
184152
184365
  "teams": [
184153
- "my-team"
184366
+ "justice-league"
184154
184367
  ]
184155
184368
  }
184156
184369
  }
184157
184370
  ]
184371
+ },
184372
+ "examples": {
184373
+ "default": {
184374
+ "summary": "Example replacing a team in a branch protection rule",
184375
+ "value": {
184376
+ "teams": [
184377
+ "justice-league"
184378
+ ]
184379
+ }
184380
+ }
184158
184381
  }
184159
184382
  }
184160
184383
  }
@@ -184484,7 +184707,7 @@
184484
184707
  "properties": {
184485
184708
  "teams": {
184486
184709
  "type": "array",
184487
- "description": "teams parameter",
184710
+ "description": "The slug values for teams",
184488
184711
  "items": {
184489
184712
  "type": "string"
184490
184713
  }
@@ -184500,6 +184723,16 @@
184500
184723
  }
184501
184724
  }
184502
184725
  ]
184726
+ },
184727
+ "examples": {
184728
+ "default": {
184729
+ "summary": "Example removing a team in a branch protection rule",
184730
+ "value": {
184731
+ "teams": [
184732
+ "justice-league"
184733
+ ]
184734
+ }
184735
+ }
184503
184736
  }
184504
184737
  }
184505
184738
  }
@@ -185064,7 +185297,7 @@
185064
185297
  "properties": {
185065
185298
  "users": {
185066
185299
  "type": "array",
185067
- "description": "users parameter",
185300
+ "description": "The username for users",
185068
185301
  "items": {
185069
185302
  "type": "string"
185070
185303
  }
@@ -185080,6 +185313,16 @@
185080
185313
  }
185081
185314
  }
185082
185315
  ]
185316
+ },
185317
+ "examples": {
185318
+ "default": {
185319
+ "summary": "Example adding a user in a branch protection rule",
185320
+ "value": {
185321
+ "users": [
185322
+ "octocat"
185323
+ ]
185324
+ }
185325
+ }
185083
185326
  }
185084
185327
  }
185085
185328
  }
@@ -185371,7 +185614,7 @@
185371
185614
  "properties": {
185372
185615
  "users": {
185373
185616
  "type": "array",
185374
- "description": "users parameter",
185617
+ "description": "The username for users",
185375
185618
  "items": {
185376
185619
  "type": "string"
185377
185620
  }
@@ -185387,6 +185630,16 @@
185387
185630
  }
185388
185631
  }
185389
185632
  ]
185633
+ },
185634
+ "examples": {
185635
+ "default": {
185636
+ "summary": "Example replacing a user in a branch protection rule",
185637
+ "value": {
185638
+ "users": [
185639
+ "octocat"
185640
+ ]
185641
+ }
185642
+ }
185390
185643
  }
185391
185644
  }
185392
185645
  }
@@ -185677,7 +185930,7 @@
185677
185930
  "properties": {
185678
185931
  "users": {
185679
185932
  "type": "array",
185680
- "description": "users parameter",
185933
+ "description": "The username for users",
185681
185934
  "items": {
185682
185935
  "type": "string"
185683
185936
  }
@@ -185693,6 +185946,16 @@
185693
185946
  }
185694
185947
  }
185695
185948
  ]
185949
+ },
185950
+ "examples": {
185951
+ "default": {
185952
+ "summary": "Example removing a user in a branch protection rule",
185953
+ "value": {
185954
+ "users": [
185955
+ "octocat"
185956
+ ]
185957
+ }
185958
+ }
185696
185959
  }
185697
185960
  }
185698
185961
  }
@@ -205396,6 +205659,7 @@
205396
205659
  "ref": "refs/heads/main",
205397
205660
  "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
205398
205661
  "environment": "",
205662
+ "category": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
205399
205663
  "state": "open",
205400
205664
  "fixed_at": null,
205401
205665
  "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
@@ -205624,6 +205888,33 @@
205624
205888
  "description": "An identifier for the upload.",
205625
205889
  "example": "6c81cd8e-b078-4ac3-a3be-1dad7dbd0b53"
205626
205890
  }
205891
+ },
205892
+ {
205893
+ "name": "direction",
205894
+ "description": "The direction to sort the results by.",
205895
+ "in": "query",
205896
+ "required": false,
205897
+ "schema": {
205898
+ "type": "string",
205899
+ "enum": [
205900
+ "asc",
205901
+ "desc"
205902
+ ],
205903
+ "default": "desc"
205904
+ }
205905
+ },
205906
+ {
205907
+ "name": "sort",
205908
+ "description": "The property by which to sort the results.",
205909
+ "in": "query",
205910
+ "required": false,
205911
+ "schema": {
205912
+ "type": "string",
205913
+ "enum": [
205914
+ "created"
205915
+ ],
205916
+ "default": "created"
205917
+ }
205627
205918
  }
205628
205919
  ],
205629
205920
  "responses": {
@@ -206192,7 +206483,7 @@
206192
206483
  },
206193
206484
  "delete": {
206194
206485
  "summary": "Delete a code scanning analysis from a repository",
206195
- "description": "Deletes a specified code scanning analysis from a repository. For\nprivate repositories, you must use an access token with the `repo` scope. For public repositories,\nyou must use an access token with `public_repo` scope.\nGitHub Apps must have the `security_events` write permission to use this endpoint.\n\nYou can delete one analysis at a time.\nTo delete a series of analyses, start with the most recent analysis and work backwards.\nConceptually, the process is similar to the undo function in a text editor.\n\nWhen you list the analyses for a repository,\none or more will be identified as deletable in the response:\n\n```\n\"deletable\": true\n```\n\nAn analysis is deletable when it's the most recent in a set of analyses.\nTypically, a repository will have multiple sets of analyses\nfor each enabled code scanning tool,\nwhere a set is determined by a unique combination of analysis values:\n\n* `ref`\n* `tool`\n* `analysis_key`\n* `environment`\n\nIf you attempt to delete an analysis that is not the most recent in a set,\nyou'll get a 400 response with the message:\n\n```\nAnalysis specified is not deletable.\n```\n\nThe response from a successful `DELETE` operation provides you with\ntwo alternative URLs for deleting the next analysis in the set:\n`next_analysis_url` and `confirm_delete_url`.\nUse the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysis\nin a set. This is a useful option if you want to preserve at least one analysis\nfor the specified tool in your repository.\nUse the `confirm_delete_url` URL if you are content to remove all analyses for a tool.\nWhen you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`\nin the 200 response is `null`.\n\nAs an example of the deletion process,\nlet's imagine that you added a workflow that configured a particular code scanning tool\nto analyze the code in a repository. This tool has added 15 analyses:\n10 on the default branch, and another 5 on a topic branch.\nYou therefore have two separate sets of analyses for this tool.\nYou've now decided that you want to remove all of the analyses for the tool.\nTo do this you must make 15 separate deletion requests.\nTo start, you must find an analysis that's identified as deletable.\nEach set of analyses always has one that's identified as deletable.\nHaving found the deletable analysis for one of the two sets,\ndelete this analysis and then continue deleting the next analysis in the set until they're all deleted.\nThen repeat the process for the second set.\nThe procedure therefore consists of a nested loop:\n\n**Outer loop**:\n* List the analyses for the repository, filtered by tool.\n* Parse this list to find a deletable analysis. If found:\n\n **Inner loop**:\n * Delete the identified analysis.\n * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.\n\nThe above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.",
206486
+ "description": "Deletes a specified code scanning analysis from a repository. For\nprivate repositories, you must use an access token with the `repo` scope. For public repositories,\nyou must use an access token with `public_repo` scope.\nGitHub Apps must have the `security_events` write permission to use this endpoint.\n\nYou can delete one analysis at a time.\nTo delete a series of analyses, start with the most recent analysis and work backwards.\nConceptually, the process is similar to the undo function in a text editor.\n\nWhen you list the analyses for a repository,\none or more will be identified as deletable in the response:\n\n```\n\"deletable\": true\n```\n\nAn analysis is deletable when it's the most recent in a set of analyses.\nTypically, a repository will have multiple sets of analyses\nfor each enabled code scanning tool,\nwhere a set is determined by a unique combination of analysis values:\n\n* `ref`\n* `tool`\n* `category`\n\nIf you attempt to delete an analysis that is not the most recent in a set,\nyou'll get a 400 response with the message:\n\n```\nAnalysis specified is not deletable.\n```\n\nThe response from a successful `DELETE` operation provides you with\ntwo alternative URLs for deleting the next analysis in the set:\n`next_analysis_url` and `confirm_delete_url`.\nUse the `next_analysis_url` URL if you want to avoid accidentally deleting the final analysis\nin a set. This is a useful option if you want to preserve at least one analysis\nfor the specified tool in your repository.\nUse the `confirm_delete_url` URL if you are content to remove all analyses for a tool.\nWhen you delete the last analysis in a set, the value of `next_analysis_url` and `confirm_delete_url`\nin the 200 response is `null`.\n\nAs an example of the deletion process,\nlet's imagine that you added a workflow that configured a particular code scanning tool\nto analyze the code in a repository. This tool has added 15 analyses:\n10 on the default branch, and another 5 on a topic branch.\nYou therefore have two separate sets of analyses for this tool.\nYou've now decided that you want to remove all of the analyses for the tool.\nTo do this you must make 15 separate deletion requests.\nTo start, you must find an analysis that's identified as deletable.\nEach set of analyses always has one that's identified as deletable.\nHaving found the deletable analysis for one of the two sets,\ndelete this analysis and then continue deleting the next analysis in the set until they're all deleted.\nThen repeat the process for the second set.\nThe procedure therefore consists of a nested loop:\n\n**Outer loop**:\n* List the analyses for the repository, filtered by tool.\n* Parse this list to find a deletable analysis. If found:\n\n **Inner loop**:\n * Delete the identified analysis.\n * Parse the response for the value of `confirm_delete_url` and, if found, use this in the next iteration.\n\nThe above process assumes that you want to remove all trace of the tool's analyses from the GitHub user interface, for the specified repository, and it therefore uses the `confirm_delete_url` value. Alternatively, you could use the `next_analysis_url` value, which would leave the last analysis in each set undeleted to avoid removing a tool's analysis entirely.",
206196
206487
  "operationId": "code-scanning/delete-analysis",
206197
206488
  "tags": [
206198
206489
  "code-scanning"
@@ -237095,7 +237386,7 @@
237095
237386
  "/repos/{owner}/{repo}/contents/{path}": {
237096
237387
  "get": {
237097
237388
  "summary": "Get repository content",
237098
- "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/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/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/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/rest/reference/git#get-a-tree).\n\n#### Size limits\nIf the requested file's size is:\n* 1 MB or smaller: All features of this endpoint are supported.\n* Between 1-100 MB: Only the `raw` or `object` [custom media types](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string and the `encoding` field will be `\"none\"`. To get the contents of these larger files, use the `raw` media type.\n * Greater than 100 MB: This endpoint is not supported.\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.",
237389
+ "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/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/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/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/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#### Size limits\nIf the requested file's size is:\n* 1 MB or smaller: All features of this endpoint are supported.\n* Between 1-100 MB: Only the `raw` or `object` [custom media types](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string and the `encoding` field will be `\"none\"`. To get the contents of these larger files, use the `raw` media type.\n * Greater than 100 MB: This endpoint is not supported.\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.",
237099
237390
  "tags": [
237100
237391
  "repos"
237101
237392
  ],
@@ -252300,6 +252591,10 @@
252300
252591
  "name": {
252301
252592
  "type": "string",
252302
252593
  "description": "When forking from an existing repository, a new name for the fork."
252594
+ },
252595
+ "default_branch_only": {
252596
+ "type": "boolean",
252597
+ "description": "When forking from an existing repository, fork with only the default branch."
252303
252598
  }
252304
252599
  }
252305
252600
  }
@@ -265652,14 +265947,6 @@
265652
265947
  "write"
265653
265948
  ]
265654
265949
  },
265655
- "organization_custom_roles": {
265656
- "type": "string",
265657
- "description": "The level of permission to grant the access token for custom roles management.",
265658
- "enum": [
265659
- "read",
265660
- "write"
265661
- ]
265662
- },
265663
265950
  "deployments": {
265664
265951
  "type": "string",
265665
265952
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -265804,6 +266091,14 @@
265804
266091
  "write"
265805
266092
  ]
265806
266093
  },
266094
+ "organization_custom_roles": {
266095
+ "type": "string",
266096
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
266097
+ "enum": [
266098
+ "read",
266099
+ "write"
266100
+ ]
266101
+ },
265807
266102
  "organization_hooks": {
265808
266103
  "type": "string",
265809
266104
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -266347,6 +266642,15 @@
266347
266642
  "required": [
266348
266643
  "limit"
266349
266644
  ]
266645
+ },
266646
+ "examples": {
266647
+ "default": {
266648
+ "summary": "Example request body",
266649
+ "value": {
266650
+ "limit": "collaborators_only",
266651
+ "expiry": "one_day"
266652
+ }
266653
+ }
266350
266654
  }
266351
266655
  }
266352
266656
  }
@@ -268779,6 +269083,14 @@
268779
269083
  ]
268780
269084
  }
268781
269085
  }
269086
+ },
269087
+ "examples": {
269088
+ "default": {
269089
+ "summary": "Example request body",
269090
+ "value": {
269091
+ "permissions": "write"
269092
+ }
269093
+ }
268782
269094
  }
268783
269095
  }
268784
269096
  }
@@ -273761,7 +274073,8 @@
273761
274073
  "type": "User",
273762
274074
  "site_admin": false
273763
274075
  },
273764
- "author_association": "COLLABORATOR"
274076
+ "author_association": "COLLABORATOR",
274077
+ "state_reason": "completed"
273765
274078
  }
273766
274079
  ]
273767
274080
  }
@@ -276611,7 +276924,8 @@
276611
276924
  "type": "User",
276612
276925
  "site_admin": false
276613
276926
  },
276614
- "author_association": "COLLABORATOR"
276927
+ "author_association": "COLLABORATOR",
276928
+ "state_reason": "completed"
276615
276929
  }
276616
276930
  }
276617
276931
  }
@@ -283657,7 +283971,8 @@
283657
283971
  "closed_at": null,
283658
283972
  "created_at": "2011-04-22T13:33:48Z",
283659
283973
  "updated_at": "2011-04-22T13:33:48Z",
283660
- "author_association": "COLLABORATOR"
283974
+ "author_association": "COLLABORATOR",
283975
+ "state_reason": "completed"
283661
283976
  }
283662
283977
  }
283663
283978
  ]
@@ -287603,7 +287918,8 @@
287603
287918
  "closed_at": null,
287604
287919
  "created_at": "2011-04-22T13:33:48Z",
287605
287920
  "updated_at": "2011-04-22T13:33:48Z",
287606
- "author_association": "COLLABORATOR"
287921
+ "author_association": "COLLABORATOR",
287922
+ "state_reason": "completed"
287607
287923
  }
287608
287924
  }
287609
287925
  }
@@ -290314,7 +290630,8 @@
290314
290630
  "type": "User",
290315
290631
  "site_admin": false
290316
290632
  },
290317
- "author_association": "COLLABORATOR"
290633
+ "author_association": "COLLABORATOR",
290634
+ "state_reason": "completed"
290318
290635
  }
290319
290636
  }
290320
290637
  }
@@ -290488,6 +290805,12 @@
290488
290805
  "closed"
290489
290806
  ]
290490
290807
  },
290808
+ "state_reason": {
290809
+ "type": "string",
290810
+ "nullable": true,
290811
+ "description": "The reason for the current state",
290812
+ "example": "not_planned"
290813
+ },
290491
290814
  "milestone": {
290492
290815
  "oneOf": [
290493
290816
  {
@@ -293132,7 +293455,8 @@
293132
293455
  "type": "User",
293133
293456
  "site_admin": false
293134
293457
  },
293135
- "author_association": "COLLABORATOR"
293458
+ "author_association": "COLLABORATOR",
293459
+ "state_reason": "completed"
293136
293460
  }
293137
293461
  }
293138
293462
  }
@@ -295987,7 +296311,8 @@
295987
296311
  "type": "User",
295988
296312
  "site_admin": false
295989
296313
  },
295990
- "author_association": "COLLABORATOR"
296314
+ "author_association": "COLLABORATOR",
296315
+ "state_reason": "completed"
295991
296316
  }
295992
296317
  }
295993
296318
  }
@@ -403236,7 +403561,8 @@
403236
403561
  "body": "...",
403237
403562
  "score": 1,
403238
403563
  "locked": true,
403239
- "author_association": "COLLABORATOR"
403564
+ "author_association": "COLLABORATOR",
403565
+ "state_reason": "completed"
403240
403566
  }
403241
403567
  ]
403242
403568
  }
@@ -405564,8 +405890,8 @@
405564
405890
  "example": "2017-08-17T12:37:15Z"
405565
405891
  },
405566
405892
  "organization": {
405567
- "title": "Organization Full",
405568
- "description": "Organization Full",
405893
+ "title": "Team Organization",
405894
+ "description": "Team Organization",
405569
405895
  "type": "object",
405570
405896
  "properties": {
405571
405897
  "login": {
@@ -406183,8 +406509,8 @@
406183
406509
  "example": "2017-08-17T12:37:15Z"
406184
406510
  },
406185
406511
  "organization": {
406186
- "title": "Organization Full",
406187
- "description": "Organization Full",
406512
+ "title": "Team Organization",
406513
+ "description": "Team Organization",
406188
406514
  "type": "object",
406189
406515
  "properties": {
406190
406516
  "login": {
@@ -406686,8 +407012,8 @@
406686
407012
  "example": "2017-08-17T12:37:15Z"
406687
407013
  },
406688
407014
  "organization": {
406689
- "title": "Organization Full",
406690
- "description": "Organization Full",
407015
+ "title": "Team Organization",
407016
+ "description": "Team Organization",
406691
407017
  "type": "object",
406692
407018
  "properties": {
406693
407019
  "login": {
@@ -446683,14 +447009,6 @@
446683
447009
  "write"
446684
447010
  ]
446685
447011
  },
446686
- "organization_custom_roles": {
446687
- "type": "string",
446688
- "description": "The level of permission to grant the access token for custom roles management.",
446689
- "enum": [
446690
- "read",
446691
- "write"
446692
- ]
446693
- },
446694
447012
  "deployments": {
446695
447013
  "type": "string",
446696
447014
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -446835,6 +447153,14 @@
446835
447153
  "write"
446836
447154
  ]
446837
447155
  },
447156
+ "organization_custom_roles": {
447157
+ "type": "string",
447158
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
447159
+ "enum": [
447160
+ "read",
447161
+ "write"
447162
+ ]
447163
+ },
446838
447164
  "organization_hooks": {
446839
447165
  "type": "string",
446840
447166
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
@@ -479760,8 +480086,8 @@
479760
480086
  "example": "2017-08-17T12:37:15Z"
479761
480087
  },
479762
480088
  "organization": {
479763
- "title": "Organization Full",
479764
- "description": "Organization Full",
480089
+ "title": "Team Organization",
480090
+ "description": "Team Organization",
479765
480091
  "type": "object",
479766
480092
  "properties": {
479767
480093
  "login": {
@@ -492392,14 +492718,6 @@
492392
492718
  "write"
492393
492719
  ]
492394
492720
  },
492395
- "organization_custom_roles": {
492396
- "type": "string",
492397
- "description": "The level of permission to grant the access token for custom roles management.",
492398
- "enum": [
492399
- "read",
492400
- "write"
492401
- ]
492402
- },
492403
492721
  "deployments": {
492404
492722
  "type": "string",
492405
492723
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -492544,6 +492862,14 @@
492544
492862
  "write"
492545
492863
  ]
492546
492864
  },
492865
+ "organization_custom_roles": {
492866
+ "type": "string",
492867
+ "description": "The level of permission to grant the access token for custom roles management. This property is in beta and is subject to change.",
492868
+ "enum": [
492869
+ "read",
492870
+ "write"
492871
+ ]
492872
+ },
492547
492873
  "organization_hooks": {
492548
492874
  "type": "string",
492549
492875
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",