From 51c5ade919cb946fbe66faf6e4119b2e528331d4 Mon Sep 17 00:00:00 2001 From: zhenbiao wei <424401670@qq.com> Date: Wed, 30 Mar 2022 13:43:51 +0800 Subject: [PATCH] update change_log (#23742) * update change_log * Update change_log.py * Update tools/azure-sdk-tools/packaging_tools/change_log.py * Update tools/azure-sdk-tools/packaging_tools/change_log.py Co-authored-by: Yuchao Yan --- tools/azure-sdk-tools/packaging_tools/change_log.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/azure-sdk-tools/packaging_tools/change_log.py b/tools/azure-sdk-tools/packaging_tools/change_log.py index fd5a43834646..1f6eed9faae7 100644 --- a/tools/azure-sdk-tools/packaging_tools/change_log.py +++ b/tools/azure-sdk-tools/packaging_tools/change_log.py @@ -67,7 +67,7 @@ def operation(self, diff_entry): return # Is this a new operation, inside a known operation group? - function_name, *remaining_path = remaining_path + function_name, parameter_name, *remaining_path = remaining_path if not remaining_path: if is_deletion: self.breaking_changes.append(_REMOVE_OPERATION.format(operation_name, function_name)) @@ -80,7 +80,7 @@ def operation(self, diff_entry): return # So method signaure changed. Be vague for now - self.breaking_changes.append(_SIGNATURE_CHANGE.format(operation_name, function_name)) + self.breaking_changes.append(_SIGNATURE_CHANGE.format(operation_name, function_name, parameter_name)) def models(self, diff_entry): path, is_deletion = self._unpack_diff_entry(diff_entry) @@ -144,7 +144,7 @@ def models(self, diff_entry): ## Breaking Changes _REMOVE_OPERATION_GROUP = "Removed operation group {}" _REMOVE_OPERATION = "Removed operation {}.{}" -_SIGNATURE_CHANGE = "Operation {}.{} has a new signature" +_SIGNATURE_CHANGE = "Operation {}.{} has a new signature {}" _MODEL_SIGNATURE_CHANGE = "Model {} has a new signature" _MODEL_PARAM_DELETE = "Model {} no longer has parameter {}" _MODEL_PARAM_ADD_REQUIRED = "Model {} has a new required parameter {}"