Skip to content

Commit a47f8e8

Browse files
authored
🐛 Fix: auto-merge commit_title/commit_message type (#30)
1 parent 1b020a4 commit a47f8e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ output_dir = "githubkit/rest/"
110110
"/components/schemas/pull-request/properties/base/properties/repo/properties/temp_clone_token" = { type = ["string", "null"] }
111111
"/components/schemas/repo-search-result-item/properties/temp_clone_token" = { type = ["string", "null"] }
112112

113+
# https://github.com/github/rest-api-description/issues/2491
114+
"/components/schemas/auto-merge/properties/commit_title" = { type = ["string", "null"] }
115+
"/components/schemas/auto-merge/properties/commit_message" = { type = ["string", "null"] }
116+
113117
[tool.codegen.webhook]
114118
schema_source = "https://unpkg.com/@octokit/webhooks-schemas/schema.json"
115119
output = "githubkit/webhooks/models.py"
@@ -124,6 +128,10 @@ types_output = "githubkit/webhooks/types.py"
124128
{ "$ref" = "#/definitions/user" }
125129
], "$ref" = {} }
126130

131+
# https://github.com/github/rest-api-description/issues/2491
132+
"/definitions/auto-merge/properties/commit_title" = { type = ["string", "null"] }
133+
"/definitions/auto-merge/properties/commit_message" = { type = ["string", "null"] }
134+
127135
[tool.codegen.field_overrides]
128136
"+1" = "plus_one"
129137
"-1" = "minus_one"

0 commit comments

Comments
 (0)