From 4176ad10ab08de77899995b8fbe7274c899bb943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 5 Dec 2024 19:59:05 +0100 Subject: [PATCH] Fix typo --- config.md | 2 +- tag_publish/configuration.py | 6 +++--- tag_publish/schema.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.md b/config.md index 8731d1e..336e262 100644 --- a/config.md +++ b/config.md @@ -4,7 +4,7 @@ _Tag Publish configuration file (.github/publish.yaml)_ ## Properties -- **`transformers`** _(object)_: The version transform configurations. Cannot contain additional properties. Default: `{"pull_request_to_version_re": [{"to": "pr-\\1"}]}`. +- **`transformers`** _(object)_: The version transform configurations. Cannot contain additional properties. Default: `{"pull_request_to_version": [{"to": "pr-\\1"}]}`. - **`branch_to_version`**: Refer to _[#/definitions/transform](#definitions/transform)_. - **`tag_to_version`**: Refer to _[#/definitions/transform](#definitions/transform)_. - **`pull_request_to_version`**: Refer to _[#/definitions/transform](#definitions/transform)_. diff --git a/tag_publish/configuration.py b/tag_publish/configuration.py index a3bfb4d..0fcc7e1 100644 --- a/tag_publish/configuration.py +++ b/tag_publish/configuration.py @@ -19,7 +19,7 @@ class Configuration(TypedDict, total=False): The version transform configurations. default: - pull_request_to_version_re: + pull_request_to_version: - to: pr-\1 """ @@ -451,7 +451,7 @@ class PypiPackage(TypedDict, total=False): """ The command used to do the build """ -TRANSFORMERS_DEFAULT = {"pull_request_to_version_re": [{"to": "pr-\\1"}]} +TRANSFORMERS_DEFAULT = {"pull_request_to_version": [{"to": "pr-\\1"}]} """ Default value of the field path 'Tag publish configuration transformers' """ @@ -485,7 +485,7 @@ class Transformers(TypedDict, total=False): The version transform configurations. default: - pull_request_to_version_re: + pull_request_to_version: - to: pr-\1 """ diff --git a/tag_publish/schema.json b/tag_publish/schema.json index 9c78cff..abc39c0 100644 --- a/tag_publish/schema.json +++ b/tag_publish/schema.json @@ -286,7 +286,7 @@ "description": "The version transform configurations.", "type": "object", "default": { - "pull_request_to_version_re": [{ "to": "pr-\\1" }] + "pull_request_to_version": [{ "to": "pr-\\1" }] }, "additionalProperties": false, "properties": {