Skip to content

Commit e385c40

Browse files
authored
Merge pull request #13 from Wei18/dependabot/submodules/Submodule/github/rest-api-description-0a02946
Bump Submodule/github/rest-api-description from `6d0981c` to `0a02946`
2 parents 7f2a51f + c657fc4 commit e385c40

File tree

5 files changed

+67
-8
lines changed

5 files changed

+67
-8
lines changed

.github/workflows/Dependabot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ permissions:
1111

1212
jobs:
1313
Sync:
14-
if: github.actor == 'dependabot[bot]'
14+
# if: github.actor == 'dependabot[bot]'
1515
strategy:
1616
matrix:
1717
os:
1818
# - ubuntu-latest
19-
- macos-latest
19+
# - macos-latest #Fix: The macos-latest workflow label currently uses the macOS 12 runner image.
20+
- macos-13
2021
swift: ["5.9"]
2122
runs-on: ${{ matrix.os }}
2223
timeout-minutes: 60

Scripts/PackageBuilder.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ struct SourcesBuilder {
6060
let sourceURLs = directoryEnumerator.compactMap { $0 as? URL }.filter { fileURL in
6161
guard let resourceValues = try? fileURL.resourceValues(forKeys: resourceKeys),
6262
let isDirectory = resourceValues.isDirectory,
63-
isDirectory
63+
isDirectory,
64+
fileURL.pathComponents.count == directoryURL.pathComponents.count + 1 // Check if it's a direct child
6465
else { return false }
6566
return true
6667
}

Sources/repos/Client.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16177,8 +16177,13 @@ public struct Client: APIProtocol {
1617716177
}
1617816178
/// Get the weekly commit activity
1617916179
///
16180+
///
1618016181
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
1618116182
///
16183+
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
16184+
/// 10,000 or more commits, a 422 status code will be returned.
16185+
///
16186+
///
1618216187
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
1618316188
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
1618416189
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 {
@@ -16252,6 +16257,8 @@ public struct Client: APIProtocol {
1625216257
return .accepted(.init(body: body))
1625316258
case 204:
1625416259
return .noContent(.init())
16260+
case 422:
16261+
return .unprocessableContent(.init())
1625516262
default:
1625616263
return .undocumented(
1625716264
statusCode: response.status.code,
@@ -16358,11 +16365,13 @@ public struct Client: APIProtocol {
1635816365
///
1635916366
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
1636016367
///
16361-
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
16368+
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
1636216369
/// * `a` - Number of additions
1636316370
/// * `d` - Number of deletions
1636416371
/// * `c` - Number of commits
1636516372
///
16373+
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
16374+
///
1636616375
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
1636716376
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
1636816377
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 {

Sources/repos/Types.swift

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,8 +1640,13 @@ public protocol APIProtocol: Sendable {
16401640
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
16411641
/// Get the weekly commit activity
16421642
///
1643+
///
16431644
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
16441645
///
1646+
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
1647+
/// 10,000 or more commits, a 422 status code will be returned.
1648+
///
1649+
///
16451650
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
16461651
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
16471652
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
@@ -1657,11 +1662,13 @@ public protocol APIProtocol: Sendable {
16571662
///
16581663
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
16591664
///
1660-
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
1665+
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
16611666
/// * `a` - Number of additions
16621667
/// * `d` - Number of deletions
16631668
/// * `c` - Number of commits
16641669
///
1670+
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
1671+
///
16651672
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
16661673
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
16671674
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
@@ -4940,8 +4947,13 @@ extension APIProtocol {
49404947
}
49414948
/// Get the weekly commit activity
49424949
///
4950+
///
49434951
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
49444952
///
4953+
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
4954+
/// 10,000 or more commits, a 422 status code will be returned.
4955+
///
4956+
///
49454957
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
49464958
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
49474959
public func repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats(
@@ -4973,11 +4985,13 @@ extension APIProtocol {
49734985
///
49744986
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
49754987
///
4976-
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
4988+
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
49774989
/// * `a` - Number of additions
49784990
/// * `d` - Number of deletions
49794991
/// * `c` - Number of commits
49804992
///
4993+
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
4994+
///
49814995
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
49824996
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
49834997
public func repos_sol_get_hyphen_contributors_hyphen_stats(
@@ -56867,8 +56881,13 @@ public enum Operations {
5686756881
}
5686856882
/// Get the weekly commit activity
5686956883
///
56884+
///
5687056885
/// Returns a weekly aggregate of the number of additions and deletions pushed to a repository.
5687156886
///
56887+
/// **Note:** This endpoint can only be used for repositories with fewer than 10,000 commits. If the repository contains
56888+
/// 10,000 or more commits, a 422 status code will be returned.
56889+
///
56890+
///
5687256891
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/code_frequency`.
5687356892
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)`.
5687456893
public enum repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats {
@@ -57021,6 +57040,33 @@ public enum Operations {
5702157040
}
5702257041
}
5702357042
}
57043+
public struct UnprocessableContent: Sendable, Hashable {
57044+
/// Creates a new `UnprocessableContent`.
57045+
public init() {}
57046+
}
57047+
/// Repository contains more than 10,000 commits
57048+
///
57049+
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/code_frequency/get(repos/get-code-frequency-stats)/responses/422`.
57050+
///
57051+
/// HTTP response code: `422 unprocessableContent`.
57052+
case unprocessableContent(Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.UnprocessableContent)
57053+
/// The associated value of the enum case if `self` is `.unprocessableContent`.
57054+
///
57055+
/// - Throws: An error if `self` is not `.unprocessableContent`.
57056+
/// - SeeAlso: `.unprocessableContent`.
57057+
public var unprocessableContent: Operations.repos_sol_get_hyphen_code_hyphen_frequency_hyphen_stats.Output.UnprocessableContent {
57058+
get throws {
57059+
switch self {
57060+
case let .unprocessableContent(response):
57061+
return response
57062+
default:
57063+
try throwUnexpectedResponseStatus(
57064+
expectedStatus: "unprocessableContent",
57065+
response: self
57066+
)
57067+
}
57068+
}
57069+
}
5702457070
/// Undocumented response.
5702557071
///
5702657072
/// A response with a code that is not documented in the OpenAPI document.
@@ -57244,11 +57290,13 @@ public enum Operations {
5724457290
///
5724557291
/// Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:
5724657292
///
57247-
/// * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).
57293+
/// * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time).
5724857294
/// * `a` - Number of additions
5724957295
/// * `d` - Number of deletions
5725057296
/// * `c` - Number of commits
5725157297
///
57298+
/// **Note:** This endpoint will return `0` values for all addition and deletion counts in repositories with 10,000 or more commits.
57299+
///
5725257300
/// - Remark: HTTP `GET /repos/{owner}/{repo}/stats/contributors`.
5725357301
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/stats/contributors/get(repos/get-contributors-stats)`.
5725457302
public enum repos_sol_get_hyphen_contributors_hyphen_stats {

0 commit comments

Comments
 (0)