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
5 changes: 3 additions & 2 deletions .github/workflows/Dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ permissions:

jobs:
Sync:
if: github.actor == 'dependabot[bot]'
# if: github.actor == 'dependabot[bot]'
strategy:
matrix:
os:
# - ubuntu-latest
- macos-latest
# - macos-latest #Fix: The macos-latest workflow label currently uses the macOS 12 runner image.
- macos-13
swift: ["5.9"]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
Expand Down
3 changes: 2 additions & 1 deletion Scripts/PackageBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ struct SourcesBuilder {
let sourceURLs = directoryEnumerator.compactMap { $0 as? URL }.filter { fileURL in
guard let resourceValues = try? fileURL.resourceValues(forKeys: resourceKeys),
let isDirectory = resourceValues.isDirectory,
isDirectory
isDirectory,
fileURL.pathComponents.count == directoryURL.pathComponents.count + 1 // Check if it's a direct child
else { return false }
return true
}
Expand Down
11 changes: 10 additions & 1 deletion Sources/repos/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16177,8 +16177,13 @@ public struct Client: APIProtocol {
}
/// Get the weekly commit activity
///
///
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
///
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
/// 10,000 or more commits, a 422 status code will be returned.
///
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
public func repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output {
Expand Down Expand Up @@ -16252,6 +16257,8 @@ public struct Client: APIProtocol {
return .accepted(.init(body: body))
case 204:
return .noContent(.init())
case 422:
return .unprocessableContent(.init())
default:
return .undocumented(
statusCode: response.status.code,
Expand Down Expand Up @@ -16358,11 +16365,13 @@ public struct Client: APIProtocol {
///
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
///
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
/// * `a` - Number of additions
/// * `d` - Number of deletions
/// * `c` - Number of commits
///
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
public func repos_sol_get_hyphen_contributors_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output {
Expand Down
54 changes: 51 additions & 3 deletions Sources/repos/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1640,8 +1640,13 @@ public protocol APIProtocol: Sendable {
func repos_sol_delete_hyphen_repo_hyphen_ruleset(_ input: Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Input) async throws -> Operations.repos_sol_delete_hyphen_repo_hyphen_ruleset.Output
/// Get the weekly commit activity
///
///
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
///
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
/// 10,000 or more commits, a 422 status code will be returned.
///
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
func repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output
Expand All @@ -1657,11 +1662,13 @@ public protocol APIProtocol: Sendable {
///
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
///
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
/// * `a` - Number of additions
/// * `d` - Number of deletions
/// * `c` - Number of commits
///
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
func repos_sol_get_hyphen_contributors_hyphen_stats(_ input: Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Input) async throws -> Operations.repos_sol_get_hyphen_contributors_hyphen_stats.Output
Expand Down Expand Up @@ -4940,8 +4947,13 @@ extension APIProtocol {
}
/// Get the weekly commit activity
///
///
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
///
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
/// 10,000 or more commits, a 422 status code will be returned.
///
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
public func repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats(
Expand Down Expand Up @@ -4973,11 +4985,13 @@ extension APIProtocol {
///
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
///
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
/// * `a` - Number of additions
/// * `d` - Number of deletions
/// * `c` - Number of commits
///
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
public func repos_sol_get_hyphen_contributors_hyphen_stats(
Expand Down Expand Up @@ -56867,8 +56881,13 @@ public enum Operations {
}
/// Get the weekly commit activity
///
///
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
///
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
/// 10,000 or more commits, a 422 status code will be returned.
///
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
public enum repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats {
Expand Down Expand Up @@ -57021,6 +57040,33 @@ public enum Operations {
}
}
}
public struct UnprocessableContent: Sendable, Hashable {
/// Creates a new `UnprocessableContent`.
public init() {}
}
/// Repository contains more than 10,000 commits
///
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/422`.
///
/// HTTP response code: `422 unprocessableContent`.
case unprocessableContent(Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.UnprocessableContent)
/// The associated value of the enum case if `self` is `.unprocessableContent`.
///
/// - Throws: An error if `self` is not `.unprocessableContent`.
/// - SeeAlso: `.unprocessableContent`.
public var unprocessableContent: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.UnprocessableContent {
get throws {
switch self {
case let .unprocessableContent(response):
return response
default:
try throwUnexpectedResponseStatus(
expectedStatus: "unprocessableContent",
response: self
)
}
}
}
/// Undocumented response.
///
/// A response with a code that is not documented in the OpenAPI document.
Expand Down Expand Up @@ -57244,11 +57290,13 @@ public enum Operations {
///
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
///
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
/// * `a` - Number of additions
/// * `d` - Number of deletions
/// * `c` - Number of commits
///
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
///
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
public enum repos_sol_get_hyphen_contributors_hyphen_stats {
Expand Down
2 changes: 1 addition & 1 deletion Submodule/github/rest-api-description