Skip to content

Commit 2ef0d6c

Browse files
Commit via running ake Sources/repos
1 parent 0d95221 commit 2ef0d6c

File tree

2 files changed

+61
-16
lines changed

2 files changed

+61
-16
lines changed

Sources/repos/Client.swift

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7777,7 +7777,7 @@ public struct Client: APIProtocol {
77777777
///
77787778
/// To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:
77797779
///
7780-
/// - The list of changed files is only shown on the first page of results, but it includes all changed files for the entire comparison.
7780+
/// - The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.
77817781
/// - The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.
77827782
///
77837783
/// For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."
@@ -17329,14 +17329,18 @@ public struct Client: APIProtocol {
1732917329
}
1733017330
)
1733117331
}
17332-
/// List tag protection states for a repository
17332+
/// Deprecated - List tag protection states for a repository
17333+
///
17334+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
17335+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead.
1733317336
///
1733417337
/// This returns the tag protection states of a repository.
1733517338
///
1733617339
/// This information is only available to repository administrators.
1733717340
///
1733817341
/// - Remark: HTTP `GET /repos/{owner}/{repo}/tags/protection`.
1733917342
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`.
17343+
@available(*, deprecated)
1734017344
public func repos_sol_list_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output {
1734117345
try await client.send(
1734217346
input: input,
@@ -17440,13 +17444,17 @@ public struct Client: APIProtocol {
1744017444
}
1744117445
)
1744217446
}
17443-
/// Create a tag protection state for a repository
17447+
/// Deprecated - Create a tag protection state for a repository
17448+
///
17449+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
17450+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead.
1744417451
///
1744517452
/// This creates a tag protection state for a repository.
1744617453
/// This endpoint is only available to repository administrators.
1744717454
///
1744817455
/// - Remark: HTTP `POST /repos/{owner}/{repo}/tags/protection`.
1744917456
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`.
17457+
@available(*, deprecated)
1745017458
public func repos_sol_create_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output {
1745117459
try await client.send(
1745217460
input: input,
@@ -17559,13 +17567,17 @@ public struct Client: APIProtocol {
1755917567
}
1756017568
)
1756117569
}
17562-
/// Delete a tag protection state for a repository
17570+
/// Deprecated - Delete a tag protection state for a repository
17571+
///
17572+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
17573+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.
1756317574
///
1756417575
/// This deletes a tag protection state for a repository.
1756517576
/// This endpoint is only available to repository administrators.
1756617577
///
1756717578
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}`.
1756817579
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)`.
17580+
@available(*, deprecated)
1756917581
public func repos_sol_delete_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Output {
1757017582
try await client.send(
1757117583
input: input,

Sources/repos/Types.swift

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ public protocol APIProtocol: Sendable {
836836
///
837837
/// To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:
838838
///
839-
/// - The list of changed files is only shown on the first page of results, but it includes all changed files for the entire comparison.
839+
/// - The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.
840840
/// - The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.
841841
///
842842
/// For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."
@@ -1823,30 +1823,42 @@ public protocol APIProtocol: Sendable {
18231823
/// - Remark: HTTP `GET /repos/{owner}/{repo}/tags`.
18241824
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/get(repos/list-tags)`.
18251825
func repos_sol_list_hyphen_tags(_ input: Operations.repos_sol_list_hyphen_tags.Input) async throws -> Operations.repos_sol_list_hyphen_tags.Output
1826-
/// List tag protection states for a repository
1826+
/// Deprecated - List tag protection states for a repository
1827+
///
1828+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
1829+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead.
18271830
///
18281831
/// This returns the tag protection states of a repository.
18291832
///
18301833
/// This information is only available to repository administrators.
18311834
///
18321835
/// - Remark: HTTP `GET /repos/{owner}/{repo}/tags/protection`.
18331836
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`.
1837+
@available(*, deprecated)
18341838
func repos_sol_list_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output
1835-
/// Create a tag protection state for a repository
1839+
/// Deprecated - Create a tag protection state for a repository
1840+
///
1841+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
1842+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead.
18361843
///
18371844
/// This creates a tag protection state for a repository.
18381845
/// This endpoint is only available to repository administrators.
18391846
///
18401847
/// - Remark: HTTP `POST /repos/{owner}/{repo}/tags/protection`.
18411848
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`.
1849+
@available(*, deprecated)
18421850
func repos_sol_create_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output
1843-
/// Delete a tag protection state for a repository
1851+
/// Deprecated - Delete a tag protection state for a repository
1852+
///
1853+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
1854+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.
18441855
///
18451856
/// This deletes a tag protection state for a repository.
18461857
/// This endpoint is only available to repository administrators.
18471858
///
18481859
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}`.
18491860
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)`.
1861+
@available(*, deprecated)
18501862
func repos_sol_delete_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Output
18511863
/// Download a repository archive (tar)
18521864
///
@@ -3493,7 +3505,7 @@ extension APIProtocol {
34933505
///
34943506
/// To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:
34953507
///
3496-
/// - The list of changed files is only shown on the first page of results, but it includes all changed files for the entire comparison.
3508+
/// - The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.
34973509
/// - The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.
34983510
///
34993511
/// For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."
@@ -5328,14 +5340,18 @@ extension APIProtocol {
53285340
headers: headers
53295341
))
53305342
}
5331-
/// List tag protection states for a repository
5343+
/// Deprecated - List tag protection states for a repository
5344+
///
5345+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
5346+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead.
53325347
///
53335348
/// This returns the tag protection states of a repository.
53345349
///
53355350
/// This information is only available to repository administrators.
53365351
///
53375352
/// - Remark: HTTP `GET /repos/{owner}/{repo}/tags/protection`.
53385353
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`.
5354+
@available(*, deprecated)
53395355
public func repos_sol_list_hyphen_tag_hyphen_protection(
53405356
path: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Path,
53415357
headers: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input.Headers = .init()
@@ -5345,13 +5361,17 @@ extension APIProtocol {
53455361
headers: headers
53465362
))
53475363
}
5348-
/// Create a tag protection state for a repository
5364+
/// Deprecated - Create a tag protection state for a repository
5365+
///
5366+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
5367+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead.
53495368
///
53505369
/// This creates a tag protection state for a repository.
53515370
/// This endpoint is only available to repository administrators.
53525371
///
53535372
/// - Remark: HTTP `POST /repos/{owner}/{repo}/tags/protection`.
53545373
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`.
5374+
@available(*, deprecated)
53555375
public func repos_sol_create_hyphen_tag_hyphen_protection(
53565376
path: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Path,
53575377
headers: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input.Headers = .init(),
@@ -5363,13 +5383,17 @@ extension APIProtocol {
53635383
body: body
53645384
))
53655385
}
5366-
/// Delete a tag protection state for a repository
5386+
/// Deprecated - Delete a tag protection state for a repository
5387+
///
5388+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
5389+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.
53675390
///
53685391
/// This deletes a tag protection state for a repository.
53695392
/// This endpoint is only available to repository administrators.
53705393
///
53715394
/// - Remark: HTTP `DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}`.
53725395
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/{tag_protection_id}/delete(repos/delete-tag-protection)`.
5396+
@available(*, deprecated)
53735397
public func repos_sol_delete_hyphen_tag_hyphen_protection(
53745398
path: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Path,
53755399
headers: Operations.repos_sol_delete_hyphen_tag_hyphen_protection.Input.Headers = .init()
@@ -38357,7 +38381,7 @@ public enum Operations {
3835738381
///
3835838382
/// To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:
3835938383
///
38360-
/// - The list of changed files is only shown on the first page of results, but it includes all changed files for the entire comparison.
38384+
/// - The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.
3836138385
/// - The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.
3836238386
///
3836338387
/// For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."
@@ -58465,7 +58489,10 @@ public enum Operations {
5846558489
}
5846658490
}
5846758491
}
58468-
/// List tag protection states for a repository
58492+
/// Deprecated - List tag protection states for a repository
58493+
///
58494+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
58495+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead.
5846958496
///
5847058497
/// This returns the tag protection states of a repository.
5847158498
///
@@ -58654,7 +58681,10 @@ public enum Operations {
5865458681
}
5865558682
}
5865658683
}
58657-
/// Create a tag protection state for a repository
58684+
/// Deprecated - Create a tag protection state for a repository
58685+
///
58686+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
58687+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead.
5865858688
///
5865958689
/// This creates a tag protection state for a repository.
5866058690
/// This endpoint is only available to repository administrators.
@@ -58868,7 +58898,10 @@ public enum Operations {
5886858898
}
5886958899
}
5887058900
}
58871-
/// Delete a tag protection state for a repository
58901+
/// Deprecated - Delete a tag protection state for a repository
58902+
///
58903+
/// **Note**: This operation is deprecated and will be removed after August 30th 2024
58904+
/// Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.
5887258905
///
5887358906
/// This deletes a tag protection state for a repository.
5887458907
/// This endpoint is only available to repository administrators.

0 commit comments

Comments
 (0)