Skip to content

Commit

Permalink
update (#36051)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored Jun 14, 2024
1 parent c19f701 commit ee65563
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# --------------------------------------------------------------------------------------------


RUN_BREAKING_CHANGES_PACKAGES = []
RUN_BREAKING_CHANGES_PACKAGES = [
"azure-mgmt-*",
]


# See Readme for ignore format
Expand Down
3 changes: 2 additions & 1 deletion scripts/breaking_changes_checker/detect_breaking_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

import re
import ast
import os
import jsondiff
Expand Down Expand Up @@ -412,7 +413,7 @@ def main(package_name: str, target_module: str, version: str, in_venv: Union[boo
package_name = os.path.basename(pkg_dir)
changelog = args.changelog
logging.basicConfig(level=logging.INFO)
if package_name not in RUN_BREAKING_CHANGES_PACKAGES:
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):
_LOGGER.info(f"{package_name} opted out of breaking changes checks. "
f"See http://aka.ms/azsdk/breaking-changes-tool to opt-in.")
exit(0)
Expand Down

0 comments on commit ee65563

Please sign in to comment.