Skip to content

Commit

Permalink
Fix committer payload
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jan 6, 2025
1 parent 65d3b72 commit 352f635
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Lambdas/GHHooks/GHHooksHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ struct GHHooksHandler: LambdaHandler {
files: [
.init(
data: ByteBuffer(string: "\(error)"),
filename: "error"
filename: "error.txt"
),
.init(
data: request.body.map(ByteBuffer.init(string:)) ?? ByteBuffer(),
filename: "body"
filename: "body.json"
),
],
attachments: [
.init(index: 0, filename: "error"),
.init(index: 1, filename: "body"),
.init(index: 0, filename: "error.txt"),
.init(index: 1, filename: "body.json"),
]
)
).guardSuccess()
Expand Down
4 changes: 2 additions & 2 deletions Lambdas/GitHubAPI/GeneratedSources/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4854,15 +4854,15 @@ package enum Components {
/// Git email address of the commit's committer
///
/// - Remark: Generated from `#/components/schemas/simple-commit/committer/email`.
package var email: Swift.String
package var email: Swift.String?
/// Creates a new `CommitterPayload`.
///
/// - Parameters:
/// - name: Name of the commit's committer
/// - email: Git email address of the commit's committer
package init(
name: Swift.String,
email: Swift.String
email: Swift.String? = nil
) {
self.name = name
self.email = email
Expand Down
2 changes: 2 additions & 0 deletions Lambdas/GitHubAPI/openapi-generator-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ filter:
- installation-token
# Need to manually mark label.description as nullable
- label
# Need to manually mark simple-commit.committer.email as nullable
- simple-commit
# Need to manually mark simple-installation.node_id as nullable
- simple-installation

2 changes: 1 addition & 1 deletion Lambdas/GitHubAPI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82371,7 +82371,7 @@ components:
format: email
required:
- name
- email
# - email
nullable: true
required:
- id
Expand Down

0 comments on commit 352f635

Please sign in to comment.