Skip to content

Commit ddfd23d

Browse files
Merge pull request #134 from wei18/dependabot/submodules/Submodule/github/rest-api-description-389c516
Bump Submodule/github/rest-api-description from `2c7afd9` to `389c516`
2 parents 86bd118 + e491670 commit ddfd23d

File tree

9 files changed

+12687
-46
lines changed

9 files changed

+12687
-46
lines changed

.spi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ builder:
3636
- GitHubRestAPIPackages
3737
- GitHubRestAPIPrivate_Registries
3838
- GitHubRestAPIProjects
39+
- GitHubRestAPIProjects_Classic
3940
- GitHubRestAPIPulls
4041
- GitHubRestAPIRate_Limit
4142
- GitHubRestAPIReactions

Package.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ let package = Package(
4545
.library(name: "GitHubRestAPIPackages", targets: ["GitHubRestAPIPackages"]),
4646
.library(name: "GitHubRestAPIPrivate_Registries", targets: ["GitHubRestAPIPrivate_Registries"]),
4747
.library(name: "GitHubRestAPIProjects", targets: ["GitHubRestAPIProjects"]),
48+
.library(name: "GitHubRestAPIProjects_Classic", targets: ["GitHubRestAPIProjects_Classic"]),
4849
.library(name: "GitHubRestAPIPulls", targets: ["GitHubRestAPIPulls"]),
4950
.library(name: "GitHubRestAPIRate_Limit", targets: ["GitHubRestAPIRate_Limit"]),
5051
.library(name: "GitHubRestAPIReactions", targets: ["GitHubRestAPIReactions"]),
@@ -332,6 +333,14 @@ let package = Package(
332333
],
333334
path: "Sources/projects"
334335
),
336+
.target(
337+
name: "GitHubRestAPIProjects_Classic",
338+
dependencies: [
339+
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
340+
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
341+
],
342+
path: "Sources/projects-classic"
343+
),
335344
.target(
336345
name: "GitHubRestAPIPulls",
337346
dependencies: [

Sources/code-security/Client.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ public struct Client: APIProtocol {
12171217
///
12181218
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
12191219
///
1220-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
1220+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
12211221
///
12221222
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
12231223
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
@@ -1434,7 +1434,7 @@ public struct Client: APIProtocol {
14341434
///
14351435
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
14361436
///
1437-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
1437+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
14381438
///
14391439
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
14401440
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
@@ -2250,7 +2250,7 @@ public struct Client: APIProtocol {
22502250
///
22512251
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
22522252
///
2253-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
2253+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
22542254
///
22552255
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
22562256
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.

Sources/code-security/Types.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public protocol APIProtocol: Sendable {
122122
///
123123
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
124124
///
125-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
125+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
126126
///
127127
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
128128
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
@@ -144,7 +144,7 @@ public protocol APIProtocol: Sendable {
144144
///
145145
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
146146
///
147-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
147+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
148148
///
149149
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
150150
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
@@ -228,7 +228,7 @@ public protocol APIProtocol: Sendable {
228228
///
229229
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
230230
///
231-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
231+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
232232
///
233233
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
234234
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.
@@ -443,7 +443,7 @@ extension APIProtocol {
443443
///
444444
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
445445
///
446-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
446+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
447447
///
448448
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
449449
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
@@ -485,7 +485,7 @@ extension APIProtocol {
485485
///
486486
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
487487
///
488-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
488+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
489489
///
490490
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
491491
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
@@ -633,7 +633,7 @@ extension APIProtocol {
633633
///
634634
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
635635
///
636-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
636+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
637637
///
638638
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
639639
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.
@@ -5100,7 +5100,7 @@ public enum Operations {
51005100
///
51015101
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
51025102
///
5103-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
5103+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
51045104
///
51055105
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
51065106
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
@@ -6025,7 +6025,7 @@ public enum Operations {
60256025
///
60266026
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
60276027
///
6028-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
6028+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
60296029
///
60306030
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
60316031
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
@@ -8108,7 +8108,7 @@ public enum Operations {
81088108
///
81098109
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
81108110
///
8111-
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
8111+
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
81128112
///
81138113
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
81148114
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.

0 commit comments

Comments
 (0)