From 19c7adf7486589dac267e0d461e902b6e28794fc Mon Sep 17 00:00:00 2001 From: Gustav Westling Date: Fri, 21 Apr 2023 13:29:11 +0200 Subject: [PATCH] Patch auto-merge commit_title/commit_message type --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 56ad8e69..0a95d015 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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"