mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
fix: add error handling to bitbucket file filtering
This commit is contained in:
parent
380437b44f
commit
bdee6f9f36
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ def filter_ignored(files, platform = 'github'):
|
|||
continue
|
||||
files = files_o
|
||||
elif platform == 'bitbucket_server':
|
||||
files = [f for f in files if not r.match(f['path']['toString'])]
|
||||
files = [f for f in files if f.get('path', {}).get('toString') and not r.match(f['path']['toString'])]
|
||||
elif platform == 'gitlab':
|
||||
# files = [f for f in files if (f['new_path'] and not r.match(f['new_path']))]
|
||||
files_o = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue