Skip to content

Commit

Permalink
🐛 Fix: auto-merge commit_title/commit_message type (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Apr 21, 2023
1 parent 1b020a4 commit a47f8e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ output_dir = "githubkit/rest/"
"/components/schemas/pull-request/properties/base/properties/repo/properties/temp_clone_token" = { type = ["string", "null"] }
"/components/schemas/repo-search-result-item/properties/temp_clone_token" = { type = ["string", "null"] }

# https://github.com/github/rest-api-description/issues/2491
"/components/schemas/auto-merge/properties/commit_title" = { type = ["string", "null"] }
"/components/schemas/auto-merge/properties/commit_message" = { type = ["string", "null"] }

[tool.codegen.webhook]
schema_source = "https://unpkg.com/@octokit/webhooks-schemas/schema.json"
output = "githubkit/webhooks/models.py"
Expand All @@ -124,6 +128,10 @@ types_output = "githubkit/webhooks/types.py"
{ "$ref" = "#/definitions/user" }
], "$ref" = {} }

# https://github.com/github/rest-api-description/issues/2491
"/definitions/auto-merge/properties/commit_title" = { type = ["string", "null"] }
"/definitions/auto-merge/properties/commit_message" = { type = ["string", "null"] }

[tool.codegen.field_overrides]
"+1" = "plus_one"
"-1" = "minus_one"
Expand Down

0 comments on commit a47f8e8

Please sign in to comment.