Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ builder:
- GitHubRestAPIPackages
- GitHubRestAPIPrivate_Registries
- GitHubRestAPIProjects
- GitHubRestAPIProjects_Classic
- GitHubRestAPIPulls
- GitHubRestAPIRate_Limit
- GitHubRestAPIReactions
Expand Down
9 changes: 9 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ let package = Package(
.library(name: "GitHubRestAPIPackages", targets: ["GitHubRestAPIPackages"]),
.library(name: "GitHubRestAPIPrivate_Registries", targets: ["GitHubRestAPIPrivate_Registries"]),
.library(name: "GitHubRestAPIProjects", targets: ["GitHubRestAPIProjects"]),
.library(name: "GitHubRestAPIProjects_Classic", targets: ["GitHubRestAPIProjects_Classic"]),
.library(name: "GitHubRestAPIPulls", targets: ["GitHubRestAPIPulls"]),
.library(name: "GitHubRestAPIRate_Limit", targets: ["GitHubRestAPIRate_Limit"]),
.library(name: "GitHubRestAPIReactions", targets: ["GitHubRestAPIReactions"]),
Expand Down Expand Up @@ -332,6 +333,14 @@ let package = Package(
],
path: "Sources/projects"
),
.target(
name: "GitHubRestAPIProjects_Classic",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),
],
path: "Sources/projects-classic"
),
.target(
name: "GitHubRestAPIPulls",
dependencies: [
Expand Down
6 changes: 3 additions & 3 deletions Sources/code-security/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ public struct Client: APIProtocol {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
Expand Down Expand Up @@ -1434,7 +1434,7 @@ public struct Client: APIProtocol {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
Expand Down Expand Up @@ -2250,7 +2250,7 @@ public struct Client: APIProtocol {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.
Expand Down
18 changes: 9 additions & 9 deletions Sources/code-security/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public protocol APIProtocol: Sendable {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
Expand All @@ -144,7 +144,7 @@ public protocol APIProtocol: Sendable {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
Expand Down Expand Up @@ -228,7 +228,7 @@ public protocol APIProtocol: Sendable {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.
Expand Down Expand Up @@ -443,7 +443,7 @@ extension APIProtocol {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
Expand Down Expand Up @@ -485,7 +485,7 @@ extension APIProtocol {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
Expand Down Expand Up @@ -633,7 +633,7 @@ extension APIProtocol {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.
Expand Down Expand Up @@ -5100,7 +5100,7 @@ public enum Operations {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/get(code-security/get-configurations-for-org)`.
Expand Down Expand Up @@ -6025,7 +6025,7 @@ public enum Operations {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/defaults`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/defaults/get(code-security/get-default-configurations)`.
Expand Down Expand Up @@ -8108,7 +8108,7 @@ public enum Operations {
///
/// The authenticated user must be an administrator or security manager for the organization to use this endpoint.
///
/// OAuth app tokens and personal access tokens (classic) need the `write:org` scope to use this endpoint.
/// OAuth app tokens and personal access tokens (classic) need the `read:org` scope to use this endpoint.
///
/// - Remark: HTTP `GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`.
/// - Remark: Generated from `#/paths//orgs/{org}/code-security/configurations/{configuration_id}/repositories/get(code-security/get-repositories-for-configuration)`.
Expand Down
Loading