Enhance repository filtering with regex pattern matching for ignore_repositories

This commit is contained in:
mrT23
2025-05-16 17:20:54 +03:00
parent d606672801
commit 42557feb97
5 changed files with 20 additions and 14 deletions

View File

@ -108,7 +108,7 @@ def should_process_pr_logic(data) -> bool:
# logic to ignore PRs from specific repositories
ignore_repos = get_settings().get("CONFIG.IGNORE_REPOSITORIES", [])
if ignore_repos and repo_full_name:
if repo_full_name in ignore_repos:
if any(re.search(regex, repo_full_name) for regex in ignore_repos):
get_logger().info(f"Ignoring MR from repository '{repo_full_name}' due to 'config.ignore_repositories' setting")
return False