Skip to content

Commit ee65563

Browse files
authored
update (#36051)
1 parent c19f701 commit ee65563

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scripts/breaking_changes_checker/breaking_changes_allowlist.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
# --------------------------------------------------------------------------------------------
77

88

9-
RUN_BREAKING_CHANGES_PACKAGES = []
9+
RUN_BREAKING_CHANGES_PACKAGES = [
10+
"azure-mgmt-*",
11+
]
1012

1113

1214
# See Readme for ignore format

scripts/breaking_changes_checker/detect_breaking_changes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Licensed under the MIT License. See License.txt in the project root for license information.
66
# --------------------------------------------------------------------------------------------
77

8+
import re
89
import ast
910
import os
1011
import jsondiff
@@ -412,7 +413,7 @@ def main(package_name: str, target_module: str, version: str, in_venv: Union[boo
412413
package_name = os.path.basename(pkg_dir)
413414
changelog = args.changelog
414415
logging.basicConfig(level=logging.INFO)
415-
if package_name not in RUN_BREAKING_CHANGES_PACKAGES:
416+
if package_name not in RUN_BREAKING_CHANGES_PACKAGES and not any(bool(re.findall(p, package_name)) for p in RUN_BREAKING_CHANGES_PACKAGES):
416417
_LOGGER.info(f"{package_name} opted out of breaking changes checks. "
417418
f"See http://aka.ms/azsdk/breaking-changes-tool to opt-in.")
418419
exit(0)

0 commit comments

Comments
 (0)