Skip to content

Commit c989d5f

Browse files
Merge pull request #140 from wei18/dependabot/submodules/Submodule/github/rest-api-description-7595529
Bump Submodule/github/rest-api-description from `30ab35c` to `7595529`
2 parents 8af04fd + 4bedd84 commit c989d5f

File tree

8 files changed

+559
-21
lines changed

8 files changed

+559
-21
lines changed

Sources/actions/Types.swift

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7855,6 +7855,10 @@ public enum Components {
78557855
///
78567856
/// - Remark: Generated from `#/components/schemas/selected-actions-url`.
78577857
public typealias SelectedActionsUrl = Swift.String
7858+
/// Whether actions must be pinned to a full-length commit SHA.
7859+
///
7860+
/// - Remark: Generated from `#/components/schemas/sha-pinning-required`.
7861+
public typealias ShaPinningRequired = Swift.Bool
78587862
/// - Remark: Generated from `#/components/schemas/actions-organization-permissions`.
78597863
public struct ActionsOrganizationPermissions: Codable, Hashable, Sendable {
78607864
/// - Remark: Generated from `#/components/schemas/actions-organization-permissions/enabled_repositories`.
@@ -7867,29 +7871,35 @@ public enum Components {
78677871
public var allowedActions: Components.Schemas.AllowedActions?
78687872
/// - Remark: Generated from `#/components/schemas/actions-organization-permissions/selected_actions_url`.
78697873
public var selectedActionsUrl: Components.Schemas.SelectedActionsUrl?
7874+
/// - Remark: Generated from `#/components/schemas/actions-organization-permissions/sha_pinning_required`.
7875+
public var shaPinningRequired: Components.Schemas.ShaPinningRequired?
78707876
/// Creates a new `ActionsOrganizationPermissions`.
78717877
///
78727878
/// - Parameters:
78737879
/// - enabledRepositories:
78747880
/// - selectedRepositoriesUrl: The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`.
78757881
/// - allowedActions:
78767882
/// - selectedActionsUrl:
7883+
/// - shaPinningRequired:
78777884
public init(
78787885
enabledRepositories: Components.Schemas.EnabledRepositories,
78797886
selectedRepositoriesUrl: Swift.String? = nil,
78807887
allowedActions: Components.Schemas.AllowedActions? = nil,
7881-
selectedActionsUrl: Components.Schemas.SelectedActionsUrl? = nil
7888+
selectedActionsUrl: Components.Schemas.SelectedActionsUrl? = nil,
7889+
shaPinningRequired: Components.Schemas.ShaPinningRequired? = nil
78827890
) {
78837891
self.enabledRepositories = enabledRepositories
78847892
self.selectedRepositoriesUrl = selectedRepositoriesUrl
78857893
self.allowedActions = allowedActions
78867894
self.selectedActionsUrl = selectedActionsUrl
7895+
self.shaPinningRequired = shaPinningRequired
78877896
}
78887897
public enum CodingKeys: String, CodingKey {
78897898
case enabledRepositories = "enabled_repositories"
78907899
case selectedRepositoriesUrl = "selected_repositories_url"
78917900
case allowedActions = "allowed_actions"
78927901
case selectedActionsUrl = "selected_actions_url"
7902+
case shaPinningRequired = "sha_pinning_required"
78937903
}
78947904
}
78957905
/// - Remark: Generated from `#/components/schemas/actions-artifact-and-log-retention-response`.
@@ -9548,25 +9558,31 @@ public enum Components {
95489558
public var allowedActions: Components.Schemas.AllowedActions?
95499559
/// - Remark: Generated from `#/components/schemas/actions-repository-permissions/selected_actions_url`.
95509560
public var selectedActionsUrl: Components.Schemas.SelectedActionsUrl?
9561+
/// - Remark: Generated from `#/components/schemas/actions-repository-permissions/sha_pinning_required`.
9562+
public var shaPinningRequired: Components.Schemas.ShaPinningRequired?
95519563
/// Creates a new `ActionsRepositoryPermissions`.
95529564
///
95539565
/// - Parameters:
95549566
/// - enabled:
95559567
/// - allowedActions:
95569568
/// - selectedActionsUrl:
9569+
/// - shaPinningRequired:
95579570
public init(
95589571
enabled: Components.Schemas.ActionsEnabled,
95599572
allowedActions: Components.Schemas.AllowedActions? = nil,
9560-
selectedActionsUrl: Components.Schemas.SelectedActionsUrl? = nil
9573+
selectedActionsUrl: Components.Schemas.SelectedActionsUrl? = nil,
9574+
shaPinningRequired: Components.Schemas.ShaPinningRequired? = nil
95619575
) {
95629576
self.enabled = enabled
95639577
self.allowedActions = allowedActions
95649578
self.selectedActionsUrl = selectedActionsUrl
9579+
self.shaPinningRequired = shaPinningRequired
95659580
}
95669581
public enum CodingKeys: String, CodingKey {
95679582
case enabled
95689583
case allowedActions = "allowed_actions"
95699584
case selectedActionsUrl = "selected_actions_url"
9585+
case shaPinningRequired = "sha_pinning_required"
95709586
}
95719587
}
95729588
/// - Remark: Generated from `#/components/schemas/actions-workflow-access-to-repository`.
@@ -13952,21 +13968,27 @@ public enum Operations {
1395213968
public var enabledRepositories: Components.Schemas.EnabledRepositories
1395313969
/// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody/json/allowed_actions`.
1395413970
public var allowedActions: Components.Schemas.AllowedActions?
13971+
/// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody/json/sha_pinning_required`.
13972+
public var shaPinningRequired: Components.Schemas.ShaPinningRequired?
1395513973
/// Creates a new `JsonPayload`.
1395613974
///
1395713975
/// - Parameters:
1395813976
/// - enabledRepositories:
1395913977
/// - allowedActions:
13978+
/// - shaPinningRequired:
1396013979
public init(
1396113980
enabledRepositories: Components.Schemas.EnabledRepositories,
13962-
allowedActions: Components.Schemas.AllowedActions? = nil
13981+
allowedActions: Components.Schemas.AllowedActions? = nil,
13982+
shaPinningRequired: Components.Schemas.ShaPinningRequired? = nil
1396313983
) {
1396413984
self.enabledRepositories = enabledRepositories
1396513985
self.allowedActions = allowedActions
13986+
self.shaPinningRequired = shaPinningRequired
1396613987
}
1396713988
public enum CodingKeys: String, CodingKey {
1396813989
case enabledRepositories = "enabled_repositories"
1396913990
case allowedActions = "allowed_actions"
13991+
case shaPinningRequired = "sha_pinning_required"
1397013992
}
1397113993
}
1397213994
/// - Remark: Generated from `#/paths/orgs/{org}/actions/permissions/PUT/requestBody/content/application\/json`.
@@ -27040,21 +27062,27 @@ public enum Operations {
2704027062
public var enabled: Components.Schemas.ActionsEnabled
2704127063
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody/json/allowed_actions`.
2704227064
public var allowedActions: Components.Schemas.AllowedActions?
27065+
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody/json/sha_pinning_required`.
27066+
public var shaPinningRequired: Components.Schemas.ShaPinningRequired?
2704327067
/// Creates a new `JsonPayload`.
2704427068
///
2704527069
/// - Parameters:
2704627070
/// - enabled:
2704727071
/// - allowedActions:
27072+
/// - shaPinningRequired:
2704827073
public init(
2704927074
enabled: Components.Schemas.ActionsEnabled,
27050-
allowedActions: Components.Schemas.AllowedActions? = nil
27075+
allowedActions: Components.Schemas.AllowedActions? = nil,
27076+
shaPinningRequired: Components.Schemas.ShaPinningRequired? = nil
2705127077
) {
2705227078
self.enabled = enabled
2705327079
self.allowedActions = allowedActions
27080+
self.shaPinningRequired = shaPinningRequired
2705427081
}
2705527082
public enum CodingKeys: String, CodingKey {
2705627083
case enabled
2705727084
case allowedActions = "allowed_actions"
27085+
case shaPinningRequired = "sha_pinning_required"
2705827086
}
2705927087
}
2706027088
/// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/permissions/PUT/requestBody/content/application\/json`.

Sources/activity/Types.swift

Lines changed: 165 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2907,6 +2907,164 @@ public enum Components {
29072907
case totalBlocking = "total_blocking"
29082908
}
29092909
}
2910+
/// A value assigned to an issue field
2911+
///
2912+
/// - Remark: Generated from `#/components/schemas/issue-field-value`.
2913+
public struct IssueFieldValue: Codable, Hashable, Sendable {
2914+
/// Unique identifier for the issue field.
2915+
///
2916+
/// - Remark: Generated from `#/components/schemas/issue-field-value/issue_field_id`.
2917+
public var issueFieldId: Swift.Int64
2918+
/// - Remark: Generated from `#/components/schemas/issue-field-value/node_id`.
2919+
public var nodeId: Swift.String
2920+
/// The data type of the issue field
2921+
///
2922+
/// - Remark: Generated from `#/components/schemas/issue-field-value/data_type`.
2923+
@frozen public enum DataTypePayload: String, Codable, Hashable, Sendable, CaseIterable {
2924+
case text = "text"
2925+
case singleSelect = "single_select"
2926+
case number = "number"
2927+
case date = "date"
2928+
}
2929+
/// The data type of the issue field
2930+
///
2931+
/// - Remark: Generated from `#/components/schemas/issue-field-value/data_type`.
2932+
public var dataType: Components.Schemas.IssueFieldValue.DataTypePayload
2933+
/// The value of the issue field
2934+
///
2935+
/// - Remark: Generated from `#/components/schemas/issue-field-value/value`.
2936+
public struct ValuePayload: Codable, Hashable, Sendable {
2937+
/// - Remark: Generated from `#/components/schemas/issue-field-value/value/value1`.
2938+
public var value1: Swift.String?
2939+
/// - Remark: Generated from `#/components/schemas/issue-field-value/value/value2`.
2940+
public var value2: Swift.Double?
2941+
/// - Remark: Generated from `#/components/schemas/issue-field-value/value/value3`.
2942+
public var value3: Swift.Int?
2943+
/// Creates a new `ValuePayload`.
2944+
///
2945+
/// - Parameters:
2946+
/// - value1:
2947+
/// - value2:
2948+
/// - value3:
2949+
public init(
2950+
value1: Swift.String? = nil,
2951+
value2: Swift.Double? = nil,
2952+
value3: Swift.Int? = nil
2953+
) {
2954+
self.value1 = value1
2955+
self.value2 = value2
2956+
self.value3 = value3
2957+
}
2958+
public init(from decoder: any Decoder) throws {
2959+
var errors: [any Error] = []
2960+
do {
2961+
self.value1 = try decoder.decodeFromSingleValueContainer()
2962+
} catch {
2963+
errors.append(error)
2964+
}
2965+
do {
2966+
self.value2 = try decoder.decodeFromSingleValueContainer()
2967+
} catch {
2968+
errors.append(error)
2969+
}
2970+
do {
2971+
self.value3 = try decoder.decodeFromSingleValueContainer()
2972+
} catch {
2973+
errors.append(error)
2974+
}
2975+
try Swift.DecodingError.verifyAtLeastOneSchemaIsNotNil(
2976+
[
2977+
self.value1,
2978+
self.value2,
2979+
self.value3
2980+
],
2981+
type: Self.self,
2982+
codingPath: decoder.codingPath,
2983+
errors: errors
2984+
)
2985+
}
2986+
public func encode(to encoder: any Encoder) throws {
2987+
try encoder.encodeFirstNonNilValueToSingleValueContainer([
2988+
self.value1,
2989+
self.value2,
2990+
self.value3
2991+
])
2992+
}
2993+
}
2994+
/// The value of the issue field
2995+
///
2996+
/// - Remark: Generated from `#/components/schemas/issue-field-value/value`.
2997+
public var value: Components.Schemas.IssueFieldValue.ValuePayload?
2998+
/// Details about the selected option (only present for single_select fields)
2999+
///
3000+
/// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option`.
3001+
public struct SingleSelectOptionPayload: Codable, Hashable, Sendable {
3002+
/// Unique identifier for the option.
3003+
///
3004+
/// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option/id`.
3005+
public var id: Swift.Int64
3006+
/// The name of the option
3007+
///
3008+
/// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option/name`.
3009+
public var name: Swift.String
3010+
/// The color of the option
3011+
///
3012+
/// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option/color`.
3013+
public var color: Swift.String
3014+
/// Creates a new `SingleSelectOptionPayload`.
3015+
///
3016+
/// - Parameters:
3017+
/// - id: Unique identifier for the option.
3018+
/// - name: The name of the option
3019+
/// - color: The color of the option
3020+
public init(
3021+
id: Swift.Int64,
3022+
name: Swift.String,
3023+
color: Swift.String
3024+
) {
3025+
self.id = id
3026+
self.name = name
3027+
self.color = color
3028+
}
3029+
public enum CodingKeys: String, CodingKey {
3030+
case id
3031+
case name
3032+
case color
3033+
}
3034+
}
3035+
/// Details about the selected option (only present for single_select fields)
3036+
///
3037+
/// - Remark: Generated from `#/components/schemas/issue-field-value/single_select_option`.
3038+
public var singleSelectOption: Components.Schemas.IssueFieldValue.SingleSelectOptionPayload?
3039+
/// Creates a new `IssueFieldValue`.
3040+
///
3041+
/// - Parameters:
3042+
/// - issueFieldId: Unique identifier for the issue field.
3043+
/// - nodeId:
3044+
/// - dataType: The data type of the issue field
3045+
/// - value: The value of the issue field
3046+
/// - singleSelectOption: Details about the selected option (only present for single_select fields)
3047+
public init(
3048+
issueFieldId: Swift.Int64,
3049+
nodeId: Swift.String,
3050+
dataType: Components.Schemas.IssueFieldValue.DataTypePayload,
3051+
value: Components.Schemas.IssueFieldValue.ValuePayload? = nil,
3052+
singleSelectOption: Components.Schemas.IssueFieldValue.SingleSelectOptionPayload? = nil
3053+
) {
3054+
self.issueFieldId = issueFieldId
3055+
self.nodeId = nodeId
3056+
self.dataType = dataType
3057+
self.value = value
3058+
self.singleSelectOption = singleSelectOption
3059+
}
3060+
public enum CodingKeys: String, CodingKey {
3061+
case issueFieldId = "issue_field_id"
3062+
case nodeId = "node_id"
3063+
case dataType = "data_type"
3064+
case value
3065+
case singleSelectOption = "single_select_option"
3066+
}
3067+
}
29103068
/// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
29113069
///
29123070
/// - Remark: Generated from `#/components/schemas/issue`.
@@ -3141,6 +3299,8 @@ public enum Components {
31413299
public var subIssuesSummary: Components.Schemas.SubIssuesSummary?
31423300
/// - Remark: Generated from `#/components/schemas/issue/issue_dependencies_summary`.
31433301
public var issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary?
3302+
/// - Remark: Generated from `#/components/schemas/issue/issue_field_values`.
3303+
public var issueFieldValues: [Components.Schemas.IssueFieldValue]?
31443304
/// Creates a new `Issue`.
31453305
///
31463306
/// - Parameters:
@@ -3181,6 +3341,7 @@ public enum Components {
31813341
/// - reactions:
31823342
/// - subIssuesSummary:
31833343
/// - issueDependenciesSummary:
3344+
/// - issueFieldValues:
31843345
public init(
31853346
id: Swift.Int64,
31863347
nodeId: Swift.String,
@@ -3218,7 +3379,8 @@ public enum Components {
32183379
authorAssociation: Components.Schemas.AuthorAssociation,
32193380
reactions: Components.Schemas.ReactionRollup? = nil,
32203381
subIssuesSummary: Components.Schemas.SubIssuesSummary? = nil,
3221-
issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary? = nil
3382+
issueDependenciesSummary: Components.Schemas.IssueDependenciesSummary? = nil,
3383+
issueFieldValues: [Components.Schemas.IssueFieldValue]? = nil
32223384
) {
32233385
self.id = id
32243386
self.nodeId = nodeId
@@ -3257,6 +3419,7 @@ public enum Components {
32573419
self.reactions = reactions
32583420
self.subIssuesSummary = subIssuesSummary
32593421
self.issueDependenciesSummary = issueDependenciesSummary
3422+
self.issueFieldValues = issueFieldValues
32603423
}
32613424
public enum CodingKeys: String, CodingKey {
32623425
case id
@@ -3296,6 +3459,7 @@ public enum Components {
32963459
case reactions
32973460
case subIssuesSummary = "sub_issues_summary"
32983461
case issueDependenciesSummary = "issue_dependencies_summary"
3462+
case issueFieldValues = "issue_field_values"
32993463
}
33003464
}
33013465
/// Comments provide a way for people to collaborate on an issue.

Sources/dependabot/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ public struct Client: APIProtocol {
676676
in: &request,
677677
style: .form,
678678
explode: true,
679-
name: "artifact_registry_url",
680-
value: input.query.artifactRegistryUrl
679+
name: "package_registry_url",
680+
value: input.query.packageRegistryUrl
681681
)
682682
try converter.setQueryItemAsURI(
683683
in: &request,

0 commit comments

Comments
 (0)